Skip to content

How to connect to ILab servers

Pavel I. Kryukov edited this page Oct 6, 2018 · 8 revisions
Note: MIPT-ILab server is no longer supported

Introduction

ILab provides to the MIPT-MIPS project remote server. You can use it for code editing, compiling, testing, running. In fact, it is allowed to develop code on any other platform (for example, on Windows using MS Visual Studio), but you have to check that it is compiled and works correctly on iLab servers.

The most important feature of this server is GNU Assembler and Linker for MIPS instruction set that are installed there. They will be strongly needed for many further tasks.

Note: if you have any problem with instructions written below ask the project owners by this e-mail address

What is SSH

SSH is a secure variant of Telnet: a protocol for controlling a computer by another one though a network.

After you have connected via SSH, you may work on a remote server as if it is your local computer. To avoid mistakes, your shell will be named as server, for example:

[email protected]:~/$

Remember, that actually it is not your computer. Therefore can be no your favorite programs, no settings and no access to your files. You have to set them manually or copy from your PC (see below how to do it).


Installing SSH

PuTTY

PuTTY is a tiny SSH client for Windows. It has both interfaces: GUI and console. It can be downloaded here

We recommend to use PuTTY if you are a Windows user.

OpenSSH

OpenSSH is CUI client for Linux and Windows. On Linux, it is usually preinstalled on most of distributives (check it by typing ssh --help), if not, you may always downolad it:

  • sudo apt-get install ssh
  • sudo pacman -S ssh

or somehow else.


How to connect

Before we start, the table with credential information of our servers is presented below:

Name Address Port Comment
Main 194.58.119.25 22
Note: We have to use only a login and password that were provided by the administrator of ILab. If you haven't got it, let us now by this e-mail address.
Note: This instruction was made assuming that you are connecting from the MIPT local network. If you are connecting from other network and have some problems, please, let us know by this e-mail address.

PuTTY (GUI) Settings

  1. Open PuTTY
  2. Type the server address and the port in the Session window.
  3. Select SSH radiobutton
  4. Name your session (e.g. MIPT-MIPS)
  5. Press Save button.
  6. Next time you're not required to fill all these setting, just double click on your session name.
  7. Press 'Open' button, enter you login and password.

PuTTY (CUI) Setting

Typing command

putty -P <port> <login>@<address>
putty -P 22 [email protected]

will give you same result as in previous paragraph.

OpenSSH Setting

Just type ssh -p <port> <login>@<address>. For example, ssh -p 22 [email protected], then type your password and you're free to work.


Copying files

To copy file, you need to use console tools. OpenSSH provides command 'scp', and PuTTY provides you 'pscp'. Syntax of them is common, so below we will use only 'scp'.

Note: SCP command can be executed only on your local machine, e.g. from cmd or Powershell on Windows and from terminal on Linux

Copy file from your machine to server

scp -P <port> <localpath> <login>@<address>:<remotepath>

Example:

scp -P 8022 my.new.file [email protected]:~/uarchsim
Note: scp uses -P (capital) flag instead of -p

Copy file from server to your machine

scp -P <port> <login>@<address>:<remotepath> <localpath>

Example:

scp -P 8022 [email protected]:~/simulator/new.log .
Hint: scp syntax is similar to syntax of common cp command, cp <from> <to>
Clone this wiki locally