..:: MacHacking.net ::.. Article from MacHacking.net Knowledge Base: http://kb.machacking.net ********** Title: SSH Explained Author: Zelda Author Contact: zelda@undergroundmac.com ********** SSH Explained SSH (secure shell) is a protocol that is used to communicate with a remote server a great pro of SSH is that any information sent over SSHis encrypted using MD5 encryption (128 bit encryption). So if any of your info is intercepted by a remote hacker your information will not be viewable. Some Common Commands For SSH Include * ssh hostname connect to hostname using ssh * slogin hostname you can use ssh and slogin interchangeably * ssh hostname command run command remotely on hostname * ssh -v hostname connect in verbose mode for debugging * ssh -V determine version number for your copy of ssh * ssh-keygen generate a new public/private key pair * ssh-keygen -c myuserid-ssh2@pha generate new key pair with identifying comment * sftp hostname copy files interactively between hosts (requires SSH2). Commands for an sftp session are similar to standard ftp. * scp filename hostB:filename copy file from current computer to hostB * scp1 filename hostB:filename copy file from current computer to hostB (use if hostB only supports SSH1) * scp hostA:filename hostB:filename copy file between two computers * scp -r hostA:dirname1 hostB:dirname2 copy directory (and its contents) between two computers * scp hostA:fn1 hostB:fn2 copy and rename file between two computers * scp fn1 fn2 fn3 hostB:directoryname copy multiple files into hostB's directory * ssh-agent command run command (usually a shell) under control of ssh-agent * ssh-add add local identity to list maintained in memory by ssh-agent * ssh-add filename add identity whose private key is stored in filename to list in memory * ssh-add -l list keys stored in memory * ssh-add -D delete all keys stored in memory Notes: 1) The port SSH uses is 22 2) your connection (direct) will be viewable on the remote serverŐs traffic. ********** Article from MacHacking.net Knowledge Base: http://kb.machacking.net