Using SSH

Using SSH
SSH (Secure Shell) is a program for logging into a remote machine and for executing commands
on a remote machine using encryption to secure the connection. It is used instead of telnet, rlogin
and rsh because it provides secure encrypted communications over the network.
Obtaining SSH for Windows
If you are going to use the Windows version of the program, you will need to install the
program. The specific files needed are found at http://software.rutgers.edu/
Log in with a valid Netid and password. Then pick "Search Software" and search for the
keyword "ssh". Click on the link for Secure Shell.
Save the SSHWin executable file to your PC if you want to keep the file after you are done
installing it. Once the file has finished downloading, double-click on the file icon to install SSH
for Windows.
Follow the on-screen instructions. If you wish to use commercial secure shell for Windows
beyond the 30 day trial period, you must go to their site, www.ssh.com and apply for an
educational use license.
Connecting with SSH
After you have installed the client software, click the "Secure Shell Client" icon in the SSH
Secure Shell sub-menu of your Start Menu, and do the following:
1. Click on File, then click on Connect
2. In the dialog box that appears, type in the full hostname of the system you want to
connect to clamshell.rutgers.edu (students) or crabshell.rutgers.edu (faculty/staff).
3. Then type in your username for that system, and click on the "Connect" button. The first
time you connect, a warning message may appear that you are connecting to a system that
you do not have a host key for. Click on Yes to save the host key to your local database.
This will place a copy of that system's encryption key on your computer.
4. Finally, type in your password for that system and click on OK.
Using Profiles
If you regularly connect to more than just one remote host computer, you probably want to have
different settings defined for each host. Profiles make it easy to manage different host
configurations.
To add a profile, Click on the Profiles icon and choose Add Profile. A dialog box will come up.
Type in a name for your connection and press the "Enter" button. When you later want to
connect to the same host, just select its profile under the "Profiles" option.
To edit existing profiles, click on the "Profiles" menu in SSH, then choose "Edit Profiles":
You will have the opportunity to customize the settings for each of your profiles. To save the
changes you've made, click on the "OK" button, otherwise, choose "Cancel".
Using "Quick Connect"
Select the Quick Connect option (from the toolbar or from the File menu) to establish a
completely new SSH connection that can be operated independently of any other clients and
connections. You can connect to an entirely new remote host computer and still keep the old
connection to a different host open.
When you need to establish a new connection, just click the Quick Connect button to connect to
a new host with the default settings.
Once connected, you can then customize the settings to match your exact requirements for this
particular host and save the settings as this host's profile
Printing
Select the Print option to output the contents of the current scrollback buffer to your printer. Use
the "Print Preview" option to help you to determine which pages to print and how the printout
will look like.
Logging a Session
Choose the Log Session option to save an entire transcript of the current terminal session to a
file.
When Log Session is selected, the "Save As" dialog opens, asking for a filename for the log file.
This file will be created if it does not already exist, and it will contain a transcript of the
connection. When logging is active, a checkmark appears next to the Log Session menu option.
Selecting the Log Session menu item for a second time stops logging.(checkmark will
dissappear)
Connecting from a Unix/Linux SSH client to clamshell or crabshell
Run the ssh client:
To log into a remote system using ssh2 protocol, simply give the ssh command along with the
name of the host, like this:
ssh clamshell.rutgers.edu
ssh will start an encrypted connection between the local computer and the remote host, if this is
the first time that you have used ssh to log into the remote host, you will see a message warning
you that the host's key is being added to your personal list of known hosts (stored in a
~/.ssh2/hostkeys). Because you are using the ssh2 protocol, the system will prompt for your
password on the remote host before allowing you to log in.
You can also use ssh as a replacement for rsh by sending remote commands. This is done in
much the same way as using ssh to log into a remote hosts:
ssh <host name> <command name>
like
ssh clamshell.rutgers.edu who
Since ssh2 is backwards-compatible with ssh1, you can also use the command:
ssh1 <host name>
or
ssh1 <host name> <command name>
to either log into a remote host or execute a command on a remote host. The ssh1 program
supports "no password" logins in conjunction with the .rhosts file in your home directory. It also
uses an older version of the ssh protocol, so you really should not use ssh1 unless the remote
system does not support ssh2. Clamshell and crabshell both support ssh2.
The ssh1 support is for outgoing connections only. Any ncoming ssh1 connections or note
supported.
For additional help with ssh see "man ssh".