SSH
From WikIBEST
SSH is a communications protocol used to start a remote terminal on Unix based systems.
Contents |
[edit] Unix Based Systems (Linux/Solaris)
On Unix based Systems you can use the SSH utility that came with the operating system. To do this start a terminal and run the following command:
ssh -Y bcatherm@oceanus.ibest.uidaho.edu
This will connect to Oceanus as the user bcatherm. You will need to change bcatherm to your IBEST account name. The -Y tells SSH that it should forward X11 or graphics connections.
When you connect to a server for the first time you will be prompted to accept the servers signature. This message looks like this:
tethys .ssh # ssh bcatherm@oceanus.ibest.uidaho.edu The authenticity of host 'oceanus.ibest.uidaho.edu (129.101.159.189)' can't be established. RSA key fingerprint is c1:20:4f:e0:c5:54:db:a8:c0:b2:57:6f:12:b4:27:78. Are you sure you want to continue connecting (yes/no)?
Accept this message by typing yes. Then you will be prompted for your password:
tethys .ssh # ssh bcatherm@oceanus.ibest.uidaho.edu The authenticity of host 'oceanus.ibest.uidaho.edu (129.101.159.189)' can't be established. RSA key fingerprint is c1:20:4f:e0:c5:54:db:a8:c0:b2:57:6f:12:b4:27:78. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'oceanus.ibest.uidaho.edu,129.101.159.189' (RSA) to the list of known hosts. bcatherm@oceanus.ibest.uidaho.edu's password:
Enter your password and you should see a command prompt.
[edit] Mac OS X
On Mac OS X you can either use the SSH client provided by the University of Idaho (found here), or the built in command line SSH client. (There is a section at the end of this page with information about making X11 work with Terminal or iTerm.) In order to get graphics working with Mac OS X, you will need to use the xterm program that comes as part of X11.
If you are using the command line version you are able to follow the steps outlined in the Unix Based Systems section.
[edit] Windows
Under Windows, you will need to download the SSH client provided by the University of Idaho (found here). Once installed you will be able to click on the Quick Connect button and enter the address of the IBEST Computer that you wish to connect to. You should also look into adding a X11 Server to your Windows system so that you can get GUI items from the remote systems.
[edit] Tips for Mac OS X Users
Apples Terminal can't forward X11 by default. This can be corrected by editing the .bash_profile. The start of this file should look like this:
#!/bin/sh
if [ -z "$DISPLAY" ] ; then
export DISPLAY=":0.0"
fi
Once you have this file, start X11 and restart Terminal (or iTerm). Be sure that X11 is running whenever you start Terminal.
Another thing you can do is set set SSH to always use X11 forwarding by removing the # in the following lines in /etc/ssh_config from:
# ForwardAgent no # ForwardX11 no
to (note the removed #):
ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes
If you do this you will be able to skip the -Y when running SSH from the Terminal.
You will need to start the X11 program with a GUI to see it forwarded, but you will no longer need to use the xterm utility to ssh into remote systems for graphics.
