😄
WindowsからVirtualBoxのDebian12にSSHで接続するメモ
WindowsからVirtualBoxのDebian12にSSHで接続するメモ
VirtualboxのゲストLinux OSにWindowsからSSH接続する方法を調べたときのメモ
前提条件
- VirtualBoxにDebianOSをインストール・各種設定完了済み
- ufwでSSHポートを許可
- ポートフォワーディングは
ホスト:ゲスト=2222:22
手順
SSHサーバーの設定
sudo apt update
sudo apt -y install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
接続
実行し、以下のような出力の後、パスワードを聞かれるので入力したらログインできる
ssh debian@127.0.0.1 -p 2222
The authenticity of host '[127.0.0.1]:2222 ([127.0.0.1]:2222)' can't be established.
~ key fingerprint is SHA256:わっほい/うっほい.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[127.0.0.1]:2222' (~) to the list of known hosts.
debian@127.0.0.1's password:
Linux debian 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) 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.
Last login: Wed Jan 524 5416:2780:5876 2025 from IP
最後に
間違っていることあればコメントに書いていただけると幸いです。
よろしくお願いいたします。
Discussion