Install and set up the SSH service in Ubuntu 12.04

Source: Internet
Author: User
Tags ssh server

Install and set up the SSH service in Ubuntu 12.04

1. Install
Openssh-client is installed by default in Ubuntu, so it is not installed here. If your system is not installed, use apt-get to install it.
Install ssh-server
Sudo apt-get install openssh-server
Install ssh-client
Sudo apt-get install openssh-client

2. Check whether sshserver is installed.
Ps-e | grep sshd
450? 00:00:00 sshd

If you see sshd, it indicates that the ssh-server has been started.
If only ssh-agent is available, it indicates that the ssh-server has not been started. You need to run the following command to start the ssh service:
/Etc/init. d/ssh start;
Note: Only sshd is displayed in the ubuntu-12.04-server-i386.iso installation:

3. Extended Configuration
The default SSH service port is 22. You can define it as another port, such as 222. The configuration file to be modified is:
/Etc/ssh/sshd_config
Modify the Port parameter to 222.
Then restart the SSH service:
Sudo/etc/init. d/ssh restart

You may also like the following SSH-related articles. For details, refer:

Complete SSH service configuration and troubleshooting in Ubuntu

How to install Samba and SSH server in Ubuntu 14.04

SSH service remote access to Linux Server login is slow

How to Improve the SSH login authentication speed of Ubuntu

Enable the SSH service to allow Android phones to remotely access Ubuntu 14.04

How to add dual authentication for SSH in Linux

Configure the SFTP environment for non-SSH users in Linux

Configure and manage the SSH service on Linux

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.