/home//.ssh config – user’s ssh config file – overrides the Global config file known_hosts – contains public keys of hosts the user has connected to Installation Log in as root (su -) yum -y install openssh openssh-clients Configuration ssh Usage ssh [options] user@host [command] Connect to remote system using the same login name sftp Usage Replaces ftp by mapping the ftp commands to OpenSSH commands sftp will add your connection to the known_hosts file sftp Commands cd – change directory on the sftp server lcd – change directory on your local machine ls – lists files in current directory on the sftp server lls – lists files in current directory on your local machine pwd – print working directory on the sftp server lpwd – print working directory on your local machine exit – exits the sftp program. sftp Commands (cont…) sftp will add your connection to the known_hosts file get – transfer a file from the sftp server to your local machine mget – transfer multiple files from the sftp server to your local machine put – transfer a file from your local machine to the sftp server help or ? – Shows a list of all sftp commands. ssh, scp and sftp Configuration Files Rarely need modification (2) Configuration files User - home//.ssh/config Global - /etc/ssh/ssh_config sshd reads them in the order of user, then global and uses the first directive that is found Therefore, the user file can override the global file Interesting Parameters ForwardX11 (yes/no) – When set to yes, it automatically forwards X11 desktop over ssh connections. Used with ForwardX11Trusted ForwardX11Trusted – when both are set to yes, it gives X11 clients full access to the server X11 display. Host – specifies declarations that apply to all hosts being connected to User – Specifies a username to log onto the server with – Lists the names of files cat –