Install and start ssh-server in ubuntu

Source: Internet
Author: User
Tags ssh secure shell
In ubuntu, ssh-server installation and startup of ssh programs are divided into client program openssh-client and server program openssh-server. If you need to log on to another computer through ssh, you need to install openssh-client. this program is installed in ubuntu by default. If you need to install and start the ssh program from the remote connection... ubuntu, the client program openssh-client and the server program openssh-server are divided. If you need to log on to another computer through ssh, you need to install openssh-client. this program is installed in ubuntu by default. To remotely connect to the local machine, you must install openssh-server. Installing openssh-server in Ubuntu is very simple. Install openssh-server $ sudo apt-get install openssh-server to check whether openssh-server is enabled $ ps-e | grep ssh process ssh-agent is a client, and sshd is a server, if the sshd process exists in the result, it indicates that openssh-server has been started. if not, run the command to start it. The command to start, stop, and restart openssh-server is as follows/etc/init. d/ssh start/etc/init. d/ssh stop/etc/init. d/ssh restart configure openssh-serveropenssh-server the configuration file is located in/etc/ssh/sshd_config. here, you can configure the SSH service port. for example, the default port is 22, you can define another port number, such as 222, and then restart the SSH service. In Ubuntu, configure openssh-server to automatically enable/etc/rc upon startup. local File, before the exit 0 statement, add:/etc/init. d/ssh start: for Client connection, you can use putty, SecureCRT, SSH Secure Shell Client, and other SSH Client software to enter the IP address of your server, enter the logon user and password to log on. The client software I often choose is putty. Ssh encryption is actually much more than this. ssh also has a very important part, that is, ssh encryption through the public key and private key, for example, git can be accessed through encrypted ssh. Ssh encryption is not discussed here for the time being. if you have the opportunity to add it, you can view the relevant information.
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.