美文网首页我用 LinuxLinuxLinux学习之路
【转载】Xshell连接VirtualBox虚拟机

【转载】Xshell连接VirtualBox虚拟机

作者: udhga | 来源:发表于2018-12-20 18:05 被阅读1次

    ---------【转载】------------

    作者:DroidMind
    来源:CSDN
    原文:https://blog.csdn.net/hp910315/article/details/70555393
    版权声明:本文为博主原创文章,转载请附上博文链接!


    前提:安装好VirtualBox虚拟机,并且在虚拟机上安装好Ubuntu系统。

    打开虚拟机中Ubuntu系统的终端
    1、安装sshd服务

    $ sudo apt-get install openssh-server
    

    2、开启服务

    $ /etc/init.d/ssh start
    

    3、判断是否安装ssh服务,可以通过如下命令进行:

    ps -e|grep ssh
    

    另外附上其他两个命令

    //关闭服务

    $ /etc/init.d/ssh stop
    

    //重启服务

    $ /etc/init.d/ssh restart
    

    4、 VirtualBox配置端口转发,点击VirtualBox的设置项


    端口转发 端口转发规则

    5、 在Window上进行XShell下载和安装

    http://www.netsarang.com/xshell_download.html

    6、在Windows上使用XShell连接VirtualBox虚拟机


    xshell配置

    配置好主机和端口点击连接就行

    相关文章

      网友评论

        本文标题:【转载】Xshell连接VirtualBox虚拟机

        本文链接:https://www.haomeiwen.com/subject/slkukqtx.html