SSH Briefly . . . . . . . . . . . . . . . . .

 

Make a connection:

ssh yourname@machine_name

> ssh jcleaver@bmc

> ssh june_cleaver@palmolive.com

 

If your user name on the remote machine is the same as the one on the local machine you are logged in under, you can drop the 'yourname@'.

> ssh bmc

 

Another important detail if you are going to run X Windows from the remote machine:

> ssh -X bmc

 

Copy a file:

scp from_file to_file

> scp jcleaver@bmc:/data/3/June/pic_list .

> scp june_cleaver@palmolive.com:mystuff.tar.gz /usr/users/bin/june/blackmail

> scp bmc:/data/3/June/bigbrains.tar.gz jcleaver@autarch:/offsite/sig/Cleaver

 

Copy a directory:

scp -r from_path to_path

> scp -r jcleaver@bmc:/data/3/June .

> scp -r june_cleaver@palmolive.com:mystuff /usr/users/bin/june/blackmail

> scp -r bmc:/data/3/June/bigbrains jcleaver@autarch:/offsite/sig/Cleaver

 

Another way to copy a file:

sftp user@machine_name

This behaves much like command line ftp. Unfortunately, it won't copy directories.

Back to HowTo pages
Page created and maintained by Eric Zylstra [11.14.02]