Ubuntu 22.04にOpenSSHクライアントをインストールする

環境
OSバージョンの確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"

SSH クライアントの設定方法
1.SSH クライアントをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# apt -y install openssh-client
# apt -y install openssh-client
# apt -y install openssh-client

2.一般ユーザーで SSH サーバーに接続します
書式
ログインユーザー@ホスト名
ログインユーザー@IP アドレス
操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# ssh arte@arkgamehost
The authenticity of host 'arkgamehost (127.0.1.1)' can't be established.
ED25519 key fingerprint is SHA256:CHyjy0rvP6D37UtqLnLwIj0szZNKvHbwPxdcomS+HLE.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes #yes入力
Warning: Permanently added 'arkgamehost' (ED25519) to the list of known hosts.
arte@arkgamehost's password:   #パスワード入力
Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-27-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: Fri Apr 29 07:05:11 2022 from 192.168.71.1
# ssh arte@arkgamehost The authenticity of host 'arkgamehost (127.0.1.1)' can't be established. ED25519 key fingerprint is SHA256:CHyjy0rvP6D37UtqLnLwIj0szZNKvHbwPxdcomS+HLE. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes #yes入力 Warning: Permanently added 'arkgamehost' (ED25519) to the list of known hosts. arte@arkgamehost's password:   #パスワード入力 Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-27-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: Fri Apr 29 07:05:11 2022 from 192.168.71.1
# ssh arte@arkgamehost
The authenticity of host 'arkgamehost (127.0.1.1)' can't be established.
ED25519 key fingerprint is SHA256:CHyjy0rvP6D37UtqLnLwIj0szZNKvHbwPxdcomS+HLE.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes  #yes入力
Warning: Permanently added 'arkgamehost' (ED25519) to the list of known hosts.
arte@arkgamehost's password:   #パスワード入力
Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-27-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: Fri Apr 29 07:05:11 2022 from 192.168.71.1

 

 

Ubuntu 22.04

Posted by arkgame