Linux开启ssh服务

  1. 首先更新源  
    sudo apt-get update
  2. 安装ssh服务
    sudo apt-get install openssh-server
  3. 检测是否已启动
    ps -e | grep ssh

    看到有ssh字样,说明已启动,如果没有就手动启动

    /etc/init.d/ssh start
  4. 配置ssh-server,配置文件位于/etc/ssh/sshd_config,默认端口为22,为了安全,一般自定义为其他端口,然后重启
    sudo /etc/init.d/ssh resart

    在windows中,使用putty或者SSH Secure Shell等登录虚拟机

posted @ 2013-09-07 17:07  韶纥  阅读(108858)  评论(0编辑  收藏  举报