ubuntu开启ssh服务(默认打开的端口是22)
sudo apt-get install openssh-server
sudo /etc/init.d/ssh start
tips
ubuntu查看端口命令:netstat -tunlp | grep 22
vmware配置端口映射
编辑(E)
> 虚拟网络编辑器(N)...
> NAT设置(S)...

window防火墙,入站规则添加5555端口
控制面板
> 系统和安全
> Windows 防火墙
>高级设置
>入站规则
>新建规则...

tips
windows查看端口命令:netstat -ano | findstr 5555
mac命令行访问ubuntu
$ ssh your_username@192.168.1.123 -p 5555
$ your_username@192.168.1.123's password:
$
网友评论