#安装ssh服务
$ sudo apt-get install openssh-server
#开启服务
$ /etc/init.d/ssh start
#判断是否安装ssh服务
ps -e|grep ssh
#关闭服务
$ /etc/init.d/ssh stop
#重启服务
$ /etc/init.d/ssh restart
配置端口转发,点击VirtualBox的设置项
#安装ssh服务
$ sudo apt-get install openssh-server
#开启服务
$ /etc/init.d/ssh start
#判断是否安装ssh服务
ps -e|grep ssh
#关闭服务
$ /etc/init.d/ssh stop
#重启服务
$ /etc/init.d/ssh restart
配置端口转发,点击VirtualBox的设置项