Linux-Networking

Install ssh in Ubuntu server
 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.

1
Linux-Networking

Install ssh in Ubuntu server
 In Ubuntu, ssh package can be found
in three initial packages, which are:
 openssh-server - contains ssh, scp
and sftp server.
 openssh-client contains ssh, scp and
sftp clients.
 metapackage - a portable ssh server
and ssh client package.

2
Linux-Networking

Install ssh in Ubuntu server
 how to install ssh package in Ubuntu
server 8.10 for beginner.
1. First, you have to check whether ssh
package has been installed in your
Ubuntu server system.
2. We can use dpkg command to list
installation package like the
screenshot below:

3
Linux-Networking

Install ssh in Ubuntu server

4
Linux-Networking

Install ssh in Ubuntu server

5
Linux-Networking

Install ssh in Ubuntu server
 We are going to install ssh package in
Ubuntu server through the Internet
using apt package management
system.
1. you need to check whether apt
package has been install in your
ubuntu server or not:

6
Linux-Networking

Install ssh in Ubuntu server

7
Linux-Networking

Install ssh in Ubuntu server

8
Linux-Networking

Install ssh in Ubuntu server
 Install ssh package with apt-get
command syntax(format) is sudo
apt-get install ssh.
1. 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:

9
Linux-Networking

Install ssh in Ubuntu server

10
Linux-Networking

Install ssh in Ubuntu server

11
Linux-Networking

Install ssh in Ubuntu server
 The ssh package installation is in
progress:

12
Linux-Networking

Install ssh in Ubuntu server


The ssh package installation is in progress:

13
Linux-Networking

Install ssh in Ubuntu server
 The ssh package installation is finish:

14
Linux-Networking

Install ssh in Ubuntu server
 The ssh package installation is finish:

15
Linux-Networking

Install ssh in Ubuntu server
 We can check ssh package installation
once again with dpkg command to
verify:

16
Linux-Networking

Install ssh in Ubuntu server

17
Linux-Networking

Install ssh in Ubuntu server
 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 sudo /etc/init.d/ssh start
command

18
Linux-Networking

Install ssh in Ubuntu server

19
Linux-Networking

Install ssh in Ubuntu server
 When ssh daemon is running, you can
try ssh to your Ubuntu server from
client. Below are screenshot examples
of accessing ssh server.

20
Linux-Networking

Install ssh in Ubuntu server
 Accessing Ubuntu server using ssh from
Slackware Linux command line
terminal:
luzar@slackware:~$ ssh -l 192.168.0.47
usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c
cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]
luzar@slackware:~$ ssh -l luzar 192.168.0.47
luzar@192.168.0.47's password:
Linux ubuntu 2.6.27-14-server #1 SMP Wed Apr 15 19:44:38 UTC 2009
i686

21
Linux-Networking

Install ssh in Ubuntu server
The programs included with the Ubuntu system are free
software;
the exact distribution terms for each program are described
in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by
applicable law.
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Wed Jun 24 04:49:59 2009 from 192.168.0.133
luzar@ubuntu:~$

22
Linux-Networking

Install ssh in Ubuntu server
 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.

23
Linux-Networking

Install ssh in Ubuntu server
 We can also access Ubuntu server from
Windows operating system using ssh by
the help of a program called Putty.
 You'll find this kind of warning when you
first connecting into ssh server.

24
Linux-Networking

Install ssh in Ubuntu server
 This is an example screenshot of
successful login into your ssh server:

25
Linux-Networking

Install ssh in Ubuntu server

26
Linux-Networking

27
Linux-Networking

Install ssh in Ubuntu server
 That's all.
 Remember that ssh is a better choice if
you are going to connect remotely to
your server.

28

Linux02 install SSh

  • 1.
    Linux-Networking Install ssh inUbuntu server  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. 1
  • 2.
    Linux-Networking Install ssh inUbuntu server  In Ubuntu, ssh package can be found in three initial packages, which are:  openssh-server - contains ssh, scp and sftp server.  openssh-client contains ssh, scp and sftp clients.  metapackage - a portable ssh server and ssh client package. 2
  • 3.
    Linux-Networking Install ssh inUbuntu server  how to install ssh package in Ubuntu server 8.10 for beginner. 1. First, you have to check whether ssh package has been installed in your Ubuntu server system. 2. We can use dpkg command to list installation package like the screenshot below: 3
  • 4.
  • 5.
  • 6.
    Linux-Networking Install ssh inUbuntu server  We are going to install ssh package in Ubuntu server through the Internet using apt package management system. 1. you need to check whether apt package has been install in your ubuntu server or not: 6
  • 7.
  • 8.
  • 9.
    Linux-Networking Install ssh inUbuntu server  Install ssh package with apt-get command syntax(format) is sudo apt-get install ssh. 1. 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: 9
  • 10.
  • 11.
  • 12.
    Linux-Networking Install ssh inUbuntu server  The ssh package installation is in progress: 12
  • 13.
    Linux-Networking Install ssh inUbuntu server  The ssh package installation is in progress: 13
  • 14.
    Linux-Networking Install ssh inUbuntu server  The ssh package installation is finish: 14
  • 15.
    Linux-Networking Install ssh inUbuntu server  The ssh package installation is finish: 15
  • 16.
    Linux-Networking Install ssh inUbuntu server  We can check ssh package installation once again with dpkg command to verify: 16
  • 17.
  • 18.
    Linux-Networking Install ssh inUbuntu server  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 sudo /etc/init.d/ssh start command 18
  • 19.
  • 20.
    Linux-Networking Install ssh inUbuntu server  When ssh daemon is running, you can try ssh to your Ubuntu server from client. Below are screenshot examples of accessing ssh server. 20
  • 21.
    Linux-Networking Install ssh inUbuntu server  Accessing Ubuntu server using ssh from Slackware Linux command line terminal: luzar@slackware:~$ ssh -l 192.168.0.47 usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-w local_tun[:remote_tun]] [user@]hostname [command] luzar@slackware:~$ ssh -l luzar 192.168.0.47 luzar@192.168.0.47's password: Linux ubuntu 2.6.27-14-server #1 SMP Wed Apr 15 19:44:38 UTC 2009 i686 21
  • 22.
    Linux-Networking Install ssh inUbuntu server The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To access official Ubuntu documentation, please visit: http://help.ubuntu.com/ Last login: Wed Jun 24 04:49:59 2009 from 192.168.0.133 luzar@ubuntu:~$ 22
  • 23.
    Linux-Networking Install ssh inUbuntu server  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. 23
  • 24.
    Linux-Networking Install ssh inUbuntu server  We can also access Ubuntu server from Windows operating system using ssh by the help of a program called Putty.  You'll find this kind of warning when you first connecting into ssh server. 24
  • 25.
    Linux-Networking Install ssh inUbuntu server  This is an example screenshot of successful login into your ssh server: 25
  • 26.
  • 27.
  • 28.
    Linux-Networking Install ssh inUbuntu server  That's all.  Remember that ssh is a better choice if you are going to connect remotely to your server. 28