Skip to main content
What is ssh?

SSH, or Secure Shell, is a protocol used to securely log onto remote systems. It is the most common way to access remote Linux and Unix-like servers.

ssh commands:

If your username on the remote system is the same as your username on your local system:

                              #ssh remote_host

remote_host means ip address or domain name that you are trying to connect to.

If your username is different on the remote system, you can specify it by using this syntax:

                     #ssh remote_username@remote_host

How to Set Up SSH on Linux systems

Edit the configuration file of sshd

#vim /etc/ssh/sshd_config
It may be a good idea to change this to a non-standard port to help obscure your server from random port scans. If you do change your port, we will show you how to connect to the new port later on.

  HostKey /etc/ssh/ssh_host_rsa_key
 HostKey /etc/ssh/ssh_host_dsa_key
 HostKey /etc/ssh/ssh_host_ecdsa_key

If you are having difficulties with SSH, increasing the amount of logging may be a good way to discover what the issue is.

LoginGraceTime 120    (LoginGraceTime specifies how many seconds to keep the connection alive without successfully logging in.)

PermitRootLogin yes     (PermitRootLogin selects whether root is allowed to log in.)

StrictModes yes      (strictModes is a safety guard that will refuse a login attempt if the authentication files are readable by everyone.)
 
Determine if the SSH server service sshd is running.
                         #service sshd status

If the SSH server service sshd is not running, start this daemon.
                          #service sshd restart

If the service is running, no further action is required.

Comments

Popular posts from this blog

Fix error 0xc000007b “The Application Was Unable To Start Correctly”

Fix error 0xc000007b “The Application Was Unable To Start Correctly” Windows is one of the most popular OS ( Operating System ) used today by several users. There are lot of versions available for the Windows. The most popular version of the window is Window 7.0. Some user switches to the newest version but still there are lot of people who is using the older version. There is one of the most common error  “The application was unable to start correctly 0xc00007b”  is faced by the all windows user. Today we are going to show you how to solve this error.  Before we get to the solutions of this error let’s take a look at the reason behind this error. There could be any reason of this error but we listed some of the most common reason for this error. The 32-bit app tries to execute on a 64-bit system. You might be trying to play a Game on your PC and after launching the application, error code  0xc00007b  may flash on your screen. You might be...
How to find and remove duplicate files from PC uplicate files can cause all kinds of problems on your computer, taking up precious storage room, confusing your photo or media manager apps, and generally getting in the way of searches and other operations when you'd rather they didn't. You don't have to accept duplicate files as an inevitability of running a PC, though: Here's how to get rid of them. Duplicate files can crop up for all kinds of reasons: Maybe you downloaded a file, forgot it was there, and then downloaded it again; maybe you copied a folder of images and then never got around to getting rid of the originals. Whatever the reason, they clog up your disk space and shouldn't be left to gather dust. For the purposes of this guide we're going to use DupeGuru-it's Lifehacker's pick as the best duplicate file finder for Windows, and it's available for Mac and Linux as well. If you're not taken with DupeGuru, then some of the best al...

Dynamic Host Configuration Protocol (DHCP)

The Dynamic Host Configuration Protocol (DHCP) is a network service that enables host computers to be automatically assigned settings from a server as opposed to manually configuring each network host. Computers configured to be DHCP clients have no control over the settings they receive from the DHCP server, and the configuration is transparent to the computer's user. The most common settings provided by a DHCP server to DHCP clients include: IP address and netmask IP address of the default-gateway to use IP adresses of the DNS servers to use However, a DHCP server can also supply configuration properties such as: Host Name Domain Name Time Server Print Server The advantage of using DHCP is that changes to the network, for example a change in the address of the DNS server, need only be changed at the DHCP server, and all network hosts will be reconfigured the next time their DHCP clients poll the DHCP server. As an added advantage, it is also ...