SSH
主配置文件:/etc/ssh/sshd_config
port //可以增加多个
port 22
port 222
第十一天学习《Linux就该这么学》
为了增加安全,禁用root用户登录,在主配置文件中
permitrootlogin no

关于认证
密码认证:
**认证:
使用ssh-****** 命令生成**对;私钥加密 公钥解密;然后我们需要将公钥发送给对端ssh-copy-id 192.168.8.12
此时也可关闭密码认证,只使用**认证登录
主配置文件中
passwordauthentication no

远程传输scp
是基于ssh的远程传输,scp只是一个命令
scp 地址:目录/文件 本地目录
scp [email protected]:/home/tt/test.txt ./
命令是将左边位置传到右边位置 ------------------->>

scp 本地目录/文件 地址:目录
scp ./test.txt [email protected]:/home/tt/
命令依然是将左边位置传到右边位置 ------------->>

不间断会话服务
yun install screen

screed -S t1 //创建一个不间断的会话
screed -ls //查看
screed -r t1 //调用会话

第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》

第十一天学习《Linux就该这么学》

相关文章:

  • 2021-05-08
  • 2021-04-09
  • 2021-11-05
  • 2021-08-12
  • 2021-04-02
  • 2021-12-23
  • 2021-08-01
  • 2021-09-02
猜你喜欢
  • 2022-01-17
  • 2021-07-19
  • 2021-04-25
  • 2021-05-20
  • 2021-05-17
  • 2021-06-17
  • 2021-06-08
相关资源
相似解决方案