Secure Network Access
Secure Remote Access (SSH)
Login Shell Programs
Open the Terminal application through Applications → Utilities → Terminal. From here you can use the ssh and scp commands as you would by following the Linux/Unix instructions.
Linux/Unix Software For Secure Access:
Login Shell Programs
File Transfer Programs
- ssh: man ssh for more information.
Connect to a host by adding the hostname you want to connect to (see our remote access servers for hosts available externally). When connecting you'll need to verify the host's identity.
Putty utilizes essentially the same commands as Unix does. You can check the useful Unix commands page for information on navigating directories, copying, moving, and deleting files, etc. You can open text editors such as pico and vi. However, here are a few shortcuts that you might not find on the Unix commands page.
Copying and Pasting from Putty to Putty
To copy and paste from one Putty screen to another, or within one Putty screen, simply move the cursor to the spot where you want to paste. After highlighting the text that you want to copy, just right click with your mouse. The text should now be pasted to where your cursor was.
Copying and Pasting to and from Putty and another Windows application
Highlight the text you want to copy, then press Ctrl-insert. Move your cursor to where tou want to paste and press Shift-insert. Your text should now be pasted.
- To log in: double click the icon. Then specify the server. For example: open access.cims.nyu.edu
- Verify the Secure Connection
- Note: When you use a file with spaces in the name (e.g. "the cat.gif"), the name must be enclosed in double-quotes. For example, get "the cat.gif" "the new cat.gif".
- For help: type help or help <command name> for help on a particular command, e.g. help get
- Use cd and pwd to change or display the path of your remote working directory (on the server).
- Use lcd and lpwd to change or display the path of your local working directory (on the PC).
- Use dir or ls to see a list of files in your remote directory.
- Use del or rm to delete a file; e.g. del my_file.txt
- Use mkdir to create a new directory on the server and rmdir to remove a directory.
- Use ren to remotely rename a file.
- Use ! to run local Windows commands: You can run local Windows commands using the ! command. If any command line begins with the ! character, then the rest of the line will be passed straight to Windows without further translation. For example, if you want to rename an existing copy of a file on the PC before downloading an updated version, you would type psftp> !ren myfile.txt myfile.bak
To download a file from the server and store it on your local PC, you use the get command.
In its simplest form, you just use this with a file name: get myfile.dat
If you want to store the file locally under a different name, specify the local file name after the remote one:
get myfile.dat newname.dat
This will copy the file on the server called myfile.dat, but will save it to your local machine under the name newname.dat.
To copy a file to your server, you use the put command:
In its simplest form, you just use this with a file name: put myfile.dat
If you want to store the file remotely under a different name, specify the remote file name after the local one:
put myfile.dat newname.dat
This will send the local file called myfile.dat, but will store it on the server under the name newname.dat.