|
|
Institute of Technology One Stop Directories Search U of M |
School of Mathematics
Obtaining and Using Secure Shell (SSH) |
|
Printing, E-Mail |
|
Ssh is used for encrypted point to point terminals and data copying across the internet.
Ssh can be used for getting command line terminals to remote computers (similar to telnet) or to securely copy data using the scp command.
Ssh is more secure than it's telnet and ftp predecessors.
If the unix command line is new to you, pick up a book on Unix from a local library. If ssh, scp and rsync are new to you, check their manual pages by running a command like man ssh.
Remote Shells with SSHTo get a terminal shell on the remote computer shell.example.edu with a username johndoe, you can open a terminal on your local computer and run the command: "ssh johndoe@shell.example.edu". Then you'll be prompted to enter your password.The Fedora 8 Linux distribution has terminals available in the "Applications > System Tools" menu. Mac OS X keeps the Terminal application in the folder "/Applications/Utilities/". Windows users generally use a program like PuTTY, and will enter the hostname in the initial dialog window, click "ok" and enter the username and password on the terminal window that opens up. If you have a specific hostname like birch.math.umn.edu just replace that hostname for shell.example.edu in the command above.
File Transfer with SFTPCommand Line SFTPTo copy a file to a remote host using the command line, use a command to specify the source to copy from and the destination to copy to.scp options source destinationRemote files are specified with a username, a host and a file (or directory). user@hostname:fileIn the case below the -r option enables recursion so the directory foo and it's contents will be copied. scp -r foo/ jdoe@shell.example.edu:~You can also copy from a remote host to a local host... scp -r jdoe@shell.example.edu:~/foo ~ Drag and Drop SFTPDesktop programs are available that let you drag and drop files between remote hosts and your desktop. Often they'll have you specify the user, host and password on an initial config screen. After connecting the SFTP sofware will show two panels, one panel, or mount the sftp connection as a network drive. Then you can drag and drop between the panels and your desktop, file manager, or finder window.See the web site for the software you plan to use. SSH SoftwareVarious free (or free for noncommercial use) ssh clients are available for different operating systems:
Public Host KeysIt is wise, although not strictly necessary, to pre-install public host keys. If you'd like to do so, or if you'd like to check if a machine's key has really changed, the public host keys for the various math systems are collected here: For OpenSSH ssh2 clients: ssh_known_hosts2.The University of Minnesota Supercomputing Institute maintains a ssh information page with links to many different client implementaions of ssh.
| ||||||||||||||||||||||||||||||||