Académique Documents
Professionnel Documents
Culture Documents
Overview
SSH Introduction and Basic Use Copying files Port and X Windows forwarding SSH Keys and installation Ssh-agent Fanout and Fanterm
SSH Features
Command line terminal connection tool Replacement for rsh, rcp, telnet, and others All traffic encrypted Both ends authenticate themselves to the other end Ability to carry and encrypt non-terminal traffic
Brief History
SSH.com's SSH1, originally completely free with source code, then license changed with version 1.2.13 SSH.com's SSH2, originally only commercial, but now free for some uses. OpenSSH team took the last free SSH1 release, refixed bugs, added features, and added support for the SSH2 protocol.
Installation
OpenSSH is included with a number of Linux distributions, and available for a large number of Unices On RPM-based Linuxes: rpm -Uvh openssh*.rpm
Basic use
ssh SshServerName ssh -l UserName SshServerName ssh SshServerName CommandToRun ssh -v SshServerName Server Host Key checks Uses same login password And if we need to encrypt other traffic?
10
X Windows forwarding
No setup - already done! Run the X Windows application in the terminal window: xclock & The screen display shows up on your computer, and any keystrokes and mouse movements are sent back, all encrypted.
11
12
13
14
15
16
ssh-agent
Remembers your private key(s) Other applications can ask ssh-agent to authenticate you automatically. Unattended remote sessions. Should already be running in the background ssh-add [KeyName]
17
Fanout
Runs command on multiple machines by opening separate ssh session to each fanout 'machine1 machine2 user@machine3' 'command params' Gives organized output from each machine
18
19
20
21
Rsync-backup
Rsync-backup automates the process of backing up machines with rsync and ssh. Features: Only changed data shipped All permissions preserved All communication encrypted Unlimited snapshots Use <= 2X-4X combined client capacity
22
23
24
Rsync-backup examples
Examples of backup commands: rsync-backup-client / root@backupserver:/ rsync-backup-client /usr /home/gbk root@backupserver:/
25
26
More links
Docs at http://www.stearns.org/doc/ http://www.employees.org/~satch/ssh/faq/sshfaq.html http://htp://rsync.samba.org William Stearns wstearns@pobox.com
27