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_config
Description file:man 5 sshd_config
Ubuntu Start sshd Service