对于没有图形界面的linux系统,一般都会用到远程连接控制,,因此新安装的linux系统,在配好网络后,首先要安装的就是远程连接工具,ssh是常用的方法。

 

  1. ps -ef |grep ssh  //查看系统是否已经启动了ssh
  2. sudo su   //切换为使用root用户安装
  3. apt-get install openssh-server  //安装ssh 服务,Ubuntu默认安装了ssh client端的
  4. vim /etc/ssh/sshd_config  //修改配置文件,如下
    # Authentication:
    LoginGraceTime 120
    PermitRootLogin yes  //改为yes
    StrictModes yes
  5. ssh服务的启动,关闭,重启
    /etc/init.d/ssh start 
    /etc/init.d/ssh stop /etc/init.d/ssh restart

        6.配置开机启动:打开/etc/rc.local文件,在exit 0语句前加入:/etc/init.d/ssh start 

 

https://blog.csdn.net/xiao_yuanjl/article/details/79147314

相关文章:

  • 2021-10-18
  • 2021-05-07
  • 2021-12-09
  • 2022-12-23
  • 2022-01-09
  • 2021-05-19
  • 2021-07-15
猜你喜欢
  • 2021-04-24
  • 2022-02-07
  • 2021-11-13
  • 2022-01-01
  • 2021-05-11
  • 2022-01-20
  • 2021-07-16
相关资源
相似解决方案