
Using SSH
![]()
The Department of Computer Science supports only ssh2, rather than telnet, rlogin and rsh. SSH offers a secure, encrypted alternative to telnet and rlogin, avoiding the security risks of sending sensitive data such as your username and password across the network in clear text format.
More information about OpenSSH can be found at the following sites:
http://openssh.org
http://openssh.org/manual.html
OpenSSH is easy to use; instead of entering "telnet hostname" enter "ssh
hostname." The SSH server will encrypt your password as part of the login
process. The SSH client is located at /usr/local/bin/ssh. The other SSH
utilities are also located in /usr/local/bin.
The first time you ssh to a UNIX machine you will be prompted to "register"
the remote machine's public key, which in UNIX is stored in your home directory in the
$HOME/.ssh/known_hosts. By answering "Yes" the hosts key will be
registered in your known_hosts file, and you will not be prompted to register on
subsequent logins.
If you are logging into a UNIX machine from a Windows platform you should use SecureCRT. SecureCRT supports SSH2, and is an excellent terminal emulation application that is installed by default on all departmental machines.
The setup for SSH2 via SecureCRT 4.1 is as follows:
Go under the "File" menu and select "Quick Connect."

SSH requires that a user name be entered in the session configuration screen. .
If you do not have SecureCRT on your computer, please send email to
help@cs.unc.edu.
The campus has a site license for SecureCRT. For more information, visit
the following campus web page:
https://shareware.unc.edu/software.html#s
The Department of Computer Science recommends the use of the SSH Secure Shell client as a free alternative to SecureCRT for home users. SSH Secure Shell includes support for SSH1/SSH2 as well as SFTP and SFTP2. This client is free for home/educational usage and versions for UNIX/Windows may be downloaded from the following sites:
(Internal Link for Windows Machines only) \\compsvc-cs\public\sftp\sshwinclient-310.exe
We recommend using F-Secure-SSH for Macintosh OS9.x-OSX. OS-X also features built-in command line based SSH and SFTP clients, accessible from the terminal window.
The F-Secure-SSH settings for the Macintosh are as follows:

To set the connection options, click on the "Properties" button in the login screen and change the setup to the following:

MacSSH is an excellent (free) SSH 2 client based on Better Telnet. Visit
http://www.macssh.com/
for more information.
If you need an SSH client for your departmental Apple machine, please send a request to help@cs.unc.edu.