Remotely connect to Ubuntu via Xshell

Source: Internet
Author: User

Ubuntu Open sshd Service
SSH sub-client openssh-client and Openssh-server
If you just want to log on to another machine SSH only need to install Openssh-client (Ubuntu has default installation, if not then sudo apt-get install openssh-client), If you want to make the native SSH service open, you need to install Openssh-server
sudo apt-get install Openssh-server
Then confirm that the Sshserver is started:
Ps-e |grep SSH
If you see sshd that means Ssh-server has been activated.
If not, you can start this way: Sudo/etc/init.d/ssh start
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:
Sudo/etc/init.d/ssh stop
Sudo/etc/init.d/ssh start
Then use the following method to log in to SSH:
SSH [email protected] tuns for users on the 192.168.0.100 machine, you need to enter a password.
Disconnect: Exit


Issues that are not connected

1. Log in with the root account at the virtual machine Terminal and edit the/etc/ssh/sshd_config file

Gedit/etc/ssh/sshd_config
2. Locate the Authentication configuration section, change Permitrootlogin Without-password to Permitrootlogin Yes, and save.

# Authentication:
Logingracetime 120
#PermitRootLogin Without-password
Permitrootlogin Yes
Strictmodes Yes
Passwordauthentication Yes
Permitemptypasswords No

Description: Sshd_config is a configuration file for SSH, there is an option Permitrootlogin to configure whether to allow root user login, the default without-password is not allowed to use password for full login authentication, Yes allows root login.

3, restart the SSH service, can be connected through the Xshell normal server

Remotely connect to Ubuntu via Xshell

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.