Created
April 22, 2014 01:16
-
-
Save masahide/11162164 to your computer and use it in GitHub Desktop.
VMware player NATで起動したゲストOSにssh接続する ref: http://qiita.com/yamasaki-masahide/items/ccb62e98dff99c2a22a1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host VMnet8 { | |
# ubuntu | |
hardware ethernet 00:0c:11:bb:cc:dd; | |
fixed-address 192.168.21.127; | |
} | |
#End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[incomingtcp] | |
8022 = 192.168.21.127:22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ifdown eth0 | |
sudo ifup eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -an|findstr 8022 | |
TCP 0.0.0.0:8022 0.0.0.0:0 LISTENING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh ホストOSのIP -p 8022 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment