Ubuntu Start sshd Service

Source: Internet
Author: User

1.Ubuntu host installation SSH related services

openssh-clientopenssh-server

Method:

sudo apt-get install openssh-client openssh-server

Detection:

-e | grep sshd

Exception: If the SSHD service is not found to be running after executing the above instruction, try the following command

sudo service ssh restart 或sudo /etc/init.d/ssh restart

If attempting the above command also works, you can try restarting the host
2. View the IP address of the active NIC
If you're using a wired network now, it's usually the Eth0 network interface.
If it is wireless, it corresponds to the Wlan0 network interface.
Method:

 ifconfig eth0 或者 ifconfig wlan0 (视你当前的网络情况而定)

Find the corresponding IP address: Assuming ip-for-ubuntu , and testing the Win7 and Ubuntu host connectivity status
Detection:
Open Win7 cmd with the following command

-c 4 ip-for-ubuntu

If the data sent can be received, the communication is normal, otherwise the host to Win7 network settings or link
Exception: If the link does not work, detect the cause of the failure by other means and fix

3. Login to Ubuntu host using putty
Note: The Ubuntu system uses UTF-8 as the default encoding, so the putty translation way
Should be consistent with, in order to avoid garbled, just start if the sshd service configuration file does not modify the corresponding
The root account is not able to log in directly via sshd because the options in the configuration file PermitRootLogin
By default without-password , the root user cannot use the Password Authentication feature, so it should be changed to
Yes
Upcoming

without-password

Change into

PermitRootLogin  yes

and through

service ssh restart

Restart the service to make the configuration file changes effective immediately

Related documents:

The directory where the SSH configuration file is located: /etc/ssh/ , where the primary configuration file is sshd_config
SSH startup script: /etc/init.d/ssh
sshd_configDescription file:man 5 sshd_config

Ubuntu Start sshd Service

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.