Start the SSH service under Linux to log in using putty

Source: Internet
Author: User

Usually in the process of Linux development, we need to use remote login tools for the host to log in remotely, so when using a remote login tool like putty or SECURECRT, sometimes there will be no login, then at this point we should think of the first thing is, Our host above the SSH service is open, then the following on the combination of online information summarized as follows:

Open SSH Service

1. See if there is a sshd_config
  Cat/etc/ssh/sshd_config//See if there are sshd_config files
2. If no installation is performed
   sudo apt-get install Openssh-serveR//install Sshd-server,UbuntuThe openssh-client is installed by default, and if you do not install it, install it with the Apt-get installation.
3. See if Sshsever is started
  ps-e |grep ssh
  1207?      00:00:00SSH-agent
 21834?      00:00:00 sshd
  If the sshd is seen to indicate that Sshserver has been started, if only ssh-agent, it is not started, with
  sudo/etc/init.d/ssh start Sshserver
4.ssh-server configuration file is located in/etc/ssh/sshd_config, where you can define the SSH service port, the default port is 22, you can define yourself as a different port number, such as 222. Then restart the SSH service with the following command:
   sudo/etc/init.d/ssh Restart
5. You can also use the sudo NETSTART-TLP command to detect if you see:
   TCP6     0    0 [::]:ssh               [::]:*
   indicates that the sshserver is starting normally.
  access is available through the client.

Start the SSH service under Linux to log in using putty

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.