Ubuntu21.10にSSH クライアントをインストールする方法

環境
Ubuntu 21.10

操作方法
1.SSH クライアントをインストールします

root@ubuntu:~# apt -y install openssh-client
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
openssh-client is already the newest version (1:8.4p1-6ubuntu2.1).
openssh-client set to manually installed.
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@ubuntu:~# hostname
ubuntu

2.任意の一般ユーザーで SSH サーバーに接続します
書式
ssh [ログインユーザー@ホスト名 または IP アドレス]
実行コマンド

root@ubuntu:~# ssh arkgame@ubuntu
The authenticity of host 'ubuntu (127.0.1.1)' can't be established.
ECDSA key fingerprint is SHA256:FMmg5d/xlPxbK8OdPFrCcvCv0z4MIqZgkcHovbEh1wY.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'ubuntu' (ECDSA) to the list of known hosts.
arkgame@ubuntu's password:
Welcome to Ubuntu 21.10 (GNU/Linux 5.13.0-39-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

0 updates can be applied immediately.

Last login: Sat Apr 9 20:44:22 2022 from 192.168.71.1

ログイン確認
arkgame@ubuntu:~$

Ubuntu 21.10

Posted by arkgame