VPS 및 전용 서버(호스팅 컨트롤 센터) 도움말

How to setup an SSH server on Ubuntu

The SSH network protocol allows users to perform remote operations over a secure connection between two computers on a network. Common uses of SSH include command-line logins, command executions and data communications. The host computer must have an SSH server installed so that it can accept an SSH connection from a client computer. OpenSSH is the most popular software that implements SSH for Linux operating systems such as Ubuntu. Setting up an SSH server on an Ubuntu computer primarily consists of installing OpenSSH and ensuring that an SSH client can connect to the server.
DIFFICULTY Basic - 1 | Medium - 2 | Advanced - 3
RELATED PRODUCTS Linux-based VPS or dedicated servers

Here is a quick tutorial on how to how to set up an ssh server on Ubuntu.

Install ssh

Run the following command from a terminal window to install ssh with apt while using superuser privileges:

# sudo apt-get install ssh

Press 'Y' when prompted to authorize the use of the indicated storage space for the installation.

Test the ssh installation

Ensure that ssh is working by connecting to your own computer with the following command:

$ ssh localhost

The error message that reads "The authenticity of host 'localhost (' can't be established" means that the ssh client doesn't have the server's encryption key yet. Enter "yes" to continue the login process and enter your password when prompted. If the logon is successful, the ssh client will store the server's encryption key in the local file named ~/.ssh/known_hosts.

Enter exit to return to the local command shell. Enter ssh localhost to sign on to your computer again. Note that the ssh client now has the server's encryption key.

이 글이 도움되었나요?
피드백을 보내주셔서 감사합니다. 고객 서비스 담당자에게 문의하시려면 지원 전화 번호 또는 위의 채팅 옵션을 이용하시기 바랍니다.
도와드릴 수 있어 기쁩니다! 더 도와 드릴 것이 있나요?
그것 유감스럽습니다. 혼동이 되었던 사항 또는 솔루션이 고객님의 문제를 해결하지 못했던 원인을 알려주세요.