Commands for connecting to other systems.
ssh # secure shell.
- Uses TCP/IP port 22.
- Terminal emulator using encrypted transmission.
- Used by PuTTY.
- Can be called directly on other Unix systems including Macs.
- Prompts user for valid account and password to connect.
Examples :
Open a terminal session to babbage.cs.niu.edu using current user's ID.
Open a terminal session to babbage.cs.niu.edu using a specified user's ID.
ssh z912730@babbage.cs.niu.edu
ssh z912730@babbage.cs.niu.edu
ssh babbage.cs.niu.edu -l z912730
Use ssh to launch a single command on babbage.cs.niu.edu using specified
user's id.
ssh babbage.cs.niu.edu ls
scp # secure copy
Uses ssh protocols.
Designed to work between two Unix systems.
Files transferred in binary mode.
scp source destination
scp file1 babbage.cs.niu.edu:public_html/.
Copies file1 on local system to user's public_html directory on babbage.
Original filename kept.
scp babbage.cs.niu.edu:.bashrc mybashrc
Copies .bashrc from user's babbage account to current directory and renames it.
scp file1 z912730@babbage.cs.niu.edu:public_html/.
Copies file1 to public_html directory of user z912730 on babbage
Must know password for z912730 to be successful.
Or targeted user must have made public_html writable and executable for others.
sftp - secure file transfer protocol
Using ssh protocols.
Interactive environment
Assumes same user on both systems unless different user specified.
sftp babbage.cs.niu.edu