Linux basic configurations - linux ssh en Linux network - Install ssh in Ubuntu server screenshots <!-- 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="" title="Image" target="_blank"><img src="" 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="" title="Image" target="_blank"><img src="" 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="" title="Image" target="_blank"><img src="" alt="Install ssh with apt-get command screenshot image" /></a></p> <p>The ssh package installation is in progress:</p> <p><a href="" title="Image" target="_blank"><img src="" alt="ssh installation in progress screenshot image" /></a></p> <p>The ssh package installation is finish: </p> <p><a href="" title="Image" target="_blank"><img src="" 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="" title="Image" target="_blank"><img src="" 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="" title="Image" target="_blank"><img src="" 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</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</span><br /> luzar@'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 /><br /> Last login: Wed Jun 24 04:49:59 2009 from<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="" title="Image" target="_blank"><img src="" 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="" title="Image" target="_blank"><img src="" 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