Debian 12 bookworm
Sponsored Link

OpenSSH : Password Authentication2023/06/14

Configure SSH Server to manage a server from the remote computer. SSH uses 22/TCP.
[1] Password Authentication for OpenSSH Server on Debian is enabled by default, so it's possible to login without changing any settings. Furthermore, root account is prohibited Password Authentication by default with [PermitRootLogin prohibit-password], so default setting is good for use. But if you prohibit root login all, change like follows.
apt -y install openssh-server
vi /etc/ssh/sshd_config
# line 33 : uncomment and change to [no]

systemctl restart ssh

SSH Client : Debian
Configure SSH Client for Debian.
[2] Install SSH Client.
apt -y install openssh-client
[3] Connect to the SSH server with a common user.
# ssh [username@hostname or IP address]


The authenticity of host ' (' can't be established.
ED25519 key fingerprint is SHA256:yKjR2T5206zIca4pz1cDMzh4axt9X6RmkrFKwD4dbg0.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])?  yes
Warning: Permanently added '' (ED25519) to the list of known hosts.'s password:
Linux 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

# just logined

[4] It's possible to execute commands on remote Host with adding commands to ssh command.
# for example, open [/etc/passwd] on remote host

ssh "cat /etc/passwd"'s password:
SSH Client : Windows#1
Configure SSH Client for Windows.
Get a SSH Client for Windows. This example shows to use Putty like follows.
Input your server's IP address and Click [Open] button.
[6] After authentication on SSH server, it's possible to login remotely with SSH.
SSH Client : Windows #2
[7] OpenSSH Client has been implemented as an Windows feature, so it's possible to use ssh command on PowerShell or Command Prompt without Putty and other SSH software.
Matched Content