Linux basic configurations - linux ssh http://www.basicconfig.com/taxonomy/term/17 en Linux network - Install ssh in Ubuntu server screenshots http://www.basicconfig.com/linuxnetwork/install_ssh_ubuntu <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>ssh is a remote protocol used in Linux and Unix system. ssh stands for secure shell, which means it provides an encrypted data transfer between a client and server. This is an improvement to the old remote protocol such as rlogin, telnet and ftp. In Ubuntu, ssh package can be found in three initial packages, which are:</p> <ul><li>openssh-server - contains ssh, scp and sftp server.</li> <li>openssh-client contains ssh, scp and sftp clients.</li> <li>metapackage - a portable ssh server and ssh client package. </li> </ul><p>This is a guide on how to install ssh package in Ubuntu server 8.10 for beginner. First, you have to check whether ssh package has been installed in your Ubuntu server system. We can use <b>dpkg</b> command to list installation package like the screenshot below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/01_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/01_ssh.png" alt="Check ssh with dpkg screenshot image" /></a></p> <p>We are going to install ssh package in Ubuntu server through the Internet using apt package management system. So you need to check whether apt package has been install in your ubuntu server or not:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/02_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/02_ssh.png" alt="Check apt package screenshot image" /></a></p> <p>Install ssh package with apt-get command syntax(format) is <b>sudo apt-get install ssh</b>. When apt-get have the package and ready to install, it will prompt us for confirmation. Answer yes to continue, or no if you prefer other ssh package. Here is the screenshot: </p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/03_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/03_ssh.png" alt="Install ssh with apt-get command screenshot image" /></a></p> <p>The ssh package installation is in progress:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/04_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/04_ssh.png" alt="ssh installation in progress screenshot image" /></a></p> <p>The ssh package installation is finish: </p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/05_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/05_ssh.png" alt="ssh installation finished screenshot image" /></a></p> <p>We can check ssh package installation once again with dpkg command to verify: </p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/06_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/06_ssh.png" alt="Verify ssh package installation screenshot image" /></a></p> <p>Check whether ssh daemon (service) is running with ps command like the screenshot example below. If there is no ssh daemon running, you can start ssh with <b>sudo /etc/init.d/ssh start</b> command.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/07_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/07_ssh.png" alt="Check ssh daemon with ps command screenshot image" /></a></p> <p>When ssh daemon is running, you can try ssh to your Ubuntu server from client. Below are screenshot examples of accessing ssh server.</p> <p>Accessing Ubuntu server using ssh from Slackware Linux command line terminal:</p> <table><tr><td><code>luzar@slackware:~$ <span style="color:red;">ssh -l 192.168.0.47</span><br /> usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]<br /> [-D [bind_address:]port] [-e escape_char] [-F configfile]<br /> [-i identity_file] [-L [bind_address:]port:host:hostport]<br /> [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]<br /> [-R [bind_address:]port:host:hostport] [-S ctl_path]<br /> [-w local_tun[:remote_tun]] [user@]hostname [command]<br /> luzar@slackware:~$ <span style="color:red;">ssh -l luzar 192.168.0.47</span><br /> luzar@192.168.0.47's password:<br /> Linux ubuntu 2.6.27-14-server #1 SMP Wed Apr 15 19:44:38 UTC 2009 i686<br /><br /> The programs included with the Ubuntu system are free software;<br /> the exact distribution terms for each program are described in the<br /> individual files in /usr/share/doc/*/Copyright.<br /><br /> Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by<br /> applicable law.<br /><br /> To access official Ubuntu documentation, please visit:<br /> http://help.ubuntu.com/<br /> Last login: Wed Jun 24 04:49:59 2009 from 192.168.0.133<br /> luzar@ubuntu:~$<br /></code></td> </tr></table><p>The first ssh command in the example above shows ssh usage help message. This happens if we enter the wrong ssh syntax. When we get the command right such as in the second ssh command example, we'll be prompted for the user account password. Enter correct user account password and we'll gain access into the Ubuntu server.</p> <p>We can also access Ubuntu server from Windows operating system using ssh by the help of a program called <em>Putty</em>. You'll find this kind of warning when you first connecting into ssh server. </p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/08_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/08_ssh.png" alt="Test ssh to the server screenshot image" /></a></p> <p>This is an example screenshot of successful login into your ssh server: </p> <p><a href="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/09_ssh.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/j/jinlusuh/thumbs/09_ssh.png" alt="Successful ssh screenshot image" /></a></p> <p>That's all. Remember that ssh is a better choice if you are going to connect remotely to your server. Use it wisely. Good luck.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/16" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux server</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/17" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux ssh</a></div></div></div> Fri, 19 Dec 2008 15:04:43 +0000 jinlusuh 116 at http://www.basicconfig.com http://www.basicconfig.com/linuxnetwork/install_ssh_ubuntu#comments