VOOZH about

URL: https://qiita.com/Gotcha/items/e82eb6c2d4d289e5bcd1

⇱ [VirtualBox] Windowsから、UbuntuにSSH接続する方法 #VirtualBox - Qiita


👁 Image
10

Go to list of users who liked

10

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@Gotcha

[VirtualBox] Windowsから、UbuntuにSSH接続する方法

10
Last updated at Posted at 2018-03-27

やりたいこと

Windows 10 の VirtualBox 上で Ubuntu Server を動かし ssh で接続したい。

前提

Ubuntu 側の SSL の設定が完了している。(openssh-serverなど)
Windows側で SSL が使用できる。(Tera Termなど)

設定

VirtualBox Manager から対象のVMを選択し、
メニューの [Settings -> Network] を選択すると、
NATが選択されているアダプタが見つかる。
[Advaned] のメニューに [Port Forwading] ボタンがあるので、
押下し、以下のような設定を追加する。

ssh
Protocol: TCP
Host port : 3022
Guest port : 22

👁 qiita-vm-settingpng.png

接続

Tera Termなどのソフト、または、コマンドでポートを指定し、ホストに接続する。

ssh -p 3022 user名@127.0.0.1 

👁 qiita2.png

以上。

参考

How to SSH to a VirtualBox guest externally through a host?

10

Go to list of users who liked

10
0

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10

Go to list of users who liked

10