Secure Shell (SSH) is a network protocol used to Secure connections between clients and servers. Each interaction between the server and the client is encrypted.
Enabling SSH will allow you to remotely connect to the system and perform administrative tasks. You can also transfer files securely via SCP and SFTP.
1. Enable SSH on Ubuntu
(By default, when installing Ubuntu for the first time, remote access via SSH is not allowed.)
① Into the supertube:
Sudo su Enter the password as promptedCopy the code
To install and enable SSH on Ubuntu: install openssh-server:
sudo apt update
sudo apt install openssh-server
Copy the code
③ After the installation is complete, the SSH service automatically starts. You can verify that SSH is running by typing the following command:
sudo systemctl status ssh
Copy the code
The output should tell you that the service is running and enabled to start at system boot:
Low SSH. Service - OpenBSD Secure Shell server the Loaded: the Loaded (/ lib/systemd/system/SSH. The service; enabled; vendor preset: enabled) Active: active (running) since Tue 2021-06-01 09:21:30 CST; 49min ago......Copy the code
Press Q to return to the command line prompt.
Note: Ubuntu comes with a firewall configuration tool called UFW. If the firewall is enabled on the system, ensure that the SSH port is enabled:
sudo ufw allow ssh
Copy the code
2. Pycharm connected to Ubuntu20.04 over SFTP
Part 1: VirtualBox for Ubuntu:
Part 2: Operation connections in PyCharm:
Tools=>Deployment=>Configuration