============================================= File transfer to/from the Course Linux Server ============================================= -IAN! idallen@idallen.ca The Course Linux Server at idallen.ca (with backup at alt.idallen.ca) is behind a firewall. Any time you connect to this machine remotely using the SSH protocol (including using SCP or SFTP), you must use the port number "2330". How you transfer files depends on where you log in, and which machine is "local" and which machine is "remote". ---------------------------------------------- A. Login to Linux, copy files to/from ACADUNIX ---------------------------------------------- Login to the Course Linux machine (note the -p port number to SSH): $ ssh -p 2330 -l abcd0123 idallen.ca [...enter Linux password...} home$ hostname idallen-home1.cpu1808.adsl.bellglobal.com Copy a file foo from ACADUNIX (remote) to bar on Linux (local): home$ scp -p acadunix.algonquincollege.com:foo bar [...enter ACADUNIX password...] Copy a file bar from Linux (local) to foo on ACADUNIX (remote): home$ scp -p bar acadunix.algonquincollege.com:foo [...enter ACADUNIX password...] Note that "-p" means "preserve modify time" to SCP. The "-p" option means "set a port number" to SSH. If your userid differs on the remote machine, add "userid@" in front of the remote machine name, e.g.: alleni99@acadunix.algonquincollege.com:foo ---------------------------------------------- B. Login to ACADUNIX, copy files to/from Linux ---------------------------------------------- Login to ACADUNIX (no port number needed): $ ssh -l abcd0123 acadunix.algonquincollege.com [...enter ACADUNIX password...} $ bash bash$ hostname acadunix Copy a file foo from ACADUNIX (local) to bar on Linux (remote) (note the need for the remote port number 2330): home$ scp -p -P 2330 foo idallen.ca:bar [...enter Linux password...] Copy a file bar from Linux (remote) to foo on ACADUNIX (local) (note the need for the remote port number 2330): home$ scp -p -P 2330 idallen.ca:bar foo [...enter Linux password...] Note that "-p" means "preserve modify time" and "-P" means "set port number" when given as options to SCP. If your userid differs on the remote machine, add "userid@" in front of the remote machine name, e.g.: abcd0123@idallen.ca:bar You must use port number 2330 for all remote access to the Course Linux Server.