Putty Unable to access Ubuntu system solution

Source: Internet
Author: User

Problem: I want to sign in to Ubuntu with Putty today, but I can't log in after entering the IP address port number

Cause: Ubuntu that wants to log on remotely is not installed Openssh-service

Workaround: Install Openssh-service



Specific commands:

1. Install
Ubuntu is installed by default openssh-client, so it is not installed here, if your system is not installed, then use the Apt-get installation can be.
install ssh-server

install ssh-client
Span style= "Background-color:rgb (0,0,0);" >sudo apt-get Install openssh-client

2. Verify that the Sshserver is installed
ps-e | grep sshd

If you see sshd, that means Ssh-server has started.  
If only ssh-agent indicates that Ssh-server is not started, you need to execute the command to start the SSH service:
/etc/init.d/ssh start;
Note: Only the sshd is displayed in the Ubuntu-12.04-server-i386.iso installation:

3. Extended Configuration
SSH default service port is 22, the user can be self-defined as a different port, such as 222, the configuration file that needs to be modified is:
/etc/ssh/sshd_config
Change the port parameter to 222
Then restart the SSH service:
Sudo/etc/init.d/ssh restart


Putty Unable to access Ubuntu system solution

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.