Debian 10 open SSH

Time:2021-6-30

When the CD is installed, no additional components are installed.
To log in through TTY terminal, configure SSH first.

1. Solve the problem of vim backspace key failure

Open / etc / VIM / vimrc.tiny, input and save

set nocompatible
set backspace=2

2. Modify Debian installation source to domestic image

Open / etc / apt / sources.list

deb http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
deb http://mirrors.cloud.tencent.com/debian-security buster/updates main
deb http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
deb http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib

deb-src http://mirrors.cloud.tencent.com/debian-security buster/updates main
deb-src http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib

Then run it

apt-get update
apt-get upgrade

3. Install openssh client and openssh server, and open SSH login

apt-get install openssh-client
apt-get install openssh-server

Open SSH service

systemctl status sshd

Debian 10 open SSH

Viewing ports with netstat command(
Install net tools
apt install net-tools
)

netstat -tulpn | grep 22

4. Virtual machine port mapping settings

Debian 10 open SSH

5. Putty settings

Debian 10 open SSH

Login successful!
Debian 10 open SSH

verification