"Go" under Ubuntu allows root user ssh Telnet

Source: Internet
Author: User
Tags openssh server ssh secure shell ssh server

Original link http://blog.sina.com.cn/s/blog_7e64a87b0100rn8w.html

SSH server, you can access the remote server via SSH protocol instead of Telnet and FTP.

However, Ubuntu defaults to not enable root users and does not allow root login. So you need to enable the root user first

Enable root User: sudo passwd root //Change password is enabled .

To install OpenSSH server:

1. Install OpenSSH server using the APT command

$ sudo apt-get install Openssh-server

2. OpenSSH server can be configured

$ sudo vi/etc/ssh/sshd_config

Find Permitrootlogin No Line and change to permitrootlogin Yes

3. Restart OpenSSH server

$ sudo service ssh restart

4. If the client is Ubuntu, you have installed the SSH client, you can use the following command to connect to the remote server.

$ ssh xxx.xxx.xxx.xxx

If it is a Windows system, you can connect remotely using SSH software such as SSH Secure shell.

[Email protected]:~$sudo VI/etc/SSH/Sshd_config # Authentication:logingracetime -#PermitRootLogin without-passwordpermitrootlogin yesstrictmodes yes[email protected]:~$sudoServiceSSHRestartSSHstop/WaitingSSHStart/running, Process2977[email protected]:~$ [email protected]:~$SSH[Email protected]192.168.1.112The authenticity of host'192.168.1.112 (192.168.1.112)'Can't be established.ECDSA key fingerprint is 7c: $: fb:7f: -: FC: the: $: -: -: the: 6a:Geneva: the: 0b:0a.are you sure your want to continue connecting (yes/no)?Yeswarning:permanently added'192.168.1.112'(ECDSA) to the list of known hosts. [Email protected]192.168.1.112's Password:

"Go" under Ubuntu allows root user ssh Telnet

Related Article

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.