How to login into linux server or client using SSH
Share the post "How to login into linux server or client using SSH"
Secure Shell (SSH) protocol is used for secure data communication, remote shell services or command execution and other secure network services between two networked computers that it connects via a secure channel over an insecure network. This quick guide explains you how to login into remote server or client machine using SSH.
SSH login with IP address and Password
#ssh
@
or
#ssh
For example :
#ssh root@192.168.1.10
If you login as root user already, then you can use the below method to login as root user in remote machine.
#ssh 192.168.1.10
SSH login with ip address and ssh key ( pem key )
#ssh -i
<username>@<ip_address>
For Example:
#ssh -i myserver.pem root@192.168.1.10
SSH login with DNS and ssh key ( pem key )
#ssh -i <key> <username>@<dns>
For Example:
#ssh -i myserver.pem root@ec2-xxxxxxx.compute-1.amazonaws.com
#ssh -i myserver.pem root@abcdefg.com
SSH login with port number
#ssh -i <key> <username>@<ip_address> -p <port_number>
#ssh -i <key> <username>@<dns> -p <port_number>
#ssh <username>@<ip_address> -p <port_number>
#ssh <username>@<dns> -p <port_number>
For Example:
#ssh -i myserver.pem root@192.168.1.10 -p 2018
#ssh -i myserver.pem root@ec2-xxxxxxx.compute-1.amazonaws.com -p 2018
#ssh root@192.168.1.10 -p 2018
# ssh root@abcdefgh.com -p 2018
If you want to login to remote machine frequently with ip address, then it is wise to add it in /etc/hosts
vim /etc/hosts
192.168.1.10 server10
save and quit the file.
Now login with name instead of ip address
For Example
#ssh root@server10
#ssh server10
It will check the entries in /etc/hosts file and trying to login with appropriate details.
Share the post "How to login into linux server or client using SSH"
Related articles
- How to access remote machine using ssh
- How to install and configure SSH Server
- How to install nginx in ubuntu
- How to install nginx in RHEL 5
- How to install nginx in RHEL 6
- Get linux OS details – Kernel version, distribution version, name, architecture, codename, release
- Rsync command with ssh port number
- File creation date and time in linux
- Easy method to update bootloader in linux
- Webcam software for linux
Advertisement
Follow us on Twitter
Follow us on GooglePlus
Find us on Facebook
Recent Posts
- Easy method to install Skype in CentOS 6.3, RHEL – 6.3
- Easy method to recover linux root password
- Easy method to install KDE in ubuntu 12.04
- How to disable selinux
- Change selinux to permissive
- How to check selinux status
- Get website details
- How to install nginx in ubuntu
- How to install nginx in RHEL 5
- How to install nginx in RHEL 6
- How to install nginx in centos 5
- Get linux OS details – Kernel version, distribution version, name, architecture, codename, release
- Service start, stop, restart – nginx in centos
- How to change nginx port number
- How to install nginx on centos 6
- Rsync command with ssh port number
- File creation date and time in linux
- How to install Java in ubuntu linux
- How to install Oracle Java JDK in ubuntu
- How to set password for website
- Plesk – MySQL admin login – password
- How to install and configure PHPMyAdmin from source code in CentOS / RHEL / Fedora linux
- How to find out mysql uptime
- How to backup and restore mysql database
- How to recover mysql root password
- How to connect Mobile Broadband in the ubuntu linux
- Easy method to update bootloader in linux
- Webcam software for linux
- Check memory usage in linux
- How to find out CPU utilization in linux
