======================= The Course Linux Server ======================= -IAN! idallen@idallen.ca The Course Linux Server at dat2330.idallen.ca (with backup connection at alt.dat2330.idallen.ca) is behind a firewall. Any time you connect to this machine remotely using the SSH protocol (including using SCP or SFTP or PuTTY), you must use the port number "2330" to pass through the firewall. To login to the Course Linux machine from the shell prompt at another Unix machine (note the -p port number to SSH): $ ssh -p 2330 -l abcd0123 dat2330.idallen.ca [...answer yes to accept the host key, if asked...} [...enter your Course Linux Server password...} Replace abcd0123, above, with your usual Algonquin userid. Your instructor can tell you your special Linux password. ----------------------- Connecting from Windows ----------------------- If you use Windows, you must use the PuTTY program (or other SSH-capable program) to connect to dat2330.idallen.ca using the SSH protocol and port number 2330 (not the default ssh port 22). PuTTY requires you to choose the protocol (SSH) *before* you set the different port number (use port 2330 for dat2330.idallen.ca and alt.dat2330.idallen.ca). Choose SSH before setting the port. ========================== Copies of the Course Notes ========================== You can find a copy of all the course Notes files for DAT2330 on the Linux Server under directory: ~idallen/public_html/teaching/dat2330/ You can copy files from this directory to your own account for modification or study, if you like. (To avoid plagiarism charges, you must credit any material that you copy and submit unchanged.) ============================================= File Transfer to/from the Course Linux Server ============================================= How you transfer files depends on where you log in, and which machine is "local" and which machine is "remote". The firewall makes things more complex than usual. ---------------------------------------------- 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 dat2330.idallen.ca [...enter Linux password...} home$ hostname idallen-home1.home.idallen.ca 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 dat2330.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 dat2330.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@dat2330.idallen.ca:bar You must use port number 2330 for all remote access to the Course Linux Server.