Windows11 コマンドプロンプトを使ってLinuxにSSH接続する方法

環境
Windows 11 Pro 22H2 64bit
RHEL9.2

操作方法
1.Windows ロゴキー と Rキー を同時に押し「ファイル名を指定して実行」を起動します。

2.cmd と入力し「OK」をクリックします。

3.使い方
書式
ssh [ユーザー名]@[ホスト名 または IPアドレス]
Linuxサーバーである192.168.44.133にユーザーroot で接続します。

実行結果

>ssh root@192.168.44.133
The authenticity of host '192.168.44.133 (192.168.44.133)' can't be established.
ED25519 key fingerprint is SHA256:J3tOe6RRiSUMNe05f3Al8rhNdQ87GiCUuuZ+AVzXFv8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.44.133' (ED25519) to the list of known hosts.
root@192.168.44.133's password:
Activate the web console with: systemctl enable --now cockpit.socket

Register this system with Red Hat Insights: insights-client --register
Create an account or view all your systems at https://red.ht/insights-dashboard
Last login: Sun Mar  3 11:45:16 2024 from 192.168.44.1
[root@localhost ~]# exit

 

Windows11

Posted by arkgame