🐸Linux服务-SSH攻防
#连接服务器
ssh root@123.123.123.123
#禁止询问过程
ssh -o StrictHostKeyChecking=no root@192.168.250.14
#远程执行命令
ssh root@192.168.250.14 "id"
#远程主机运行本地脚本
ssh root@192.168.250.14 /bin/bash < test.sh
#挂载远程目录
Centos7:yum install fuse-sshfs
Kali:apt install sshfs
sshfs 10.1.1.1:/data /mnt配置文件
#首次登录不显示检查提示
StrictHostKeyChecking no
PermitRootLogin yes #ubuntu默认不允许root登录
PermitEmptyPasswords no #空密码连接
UseDNS yes #提高速度
GSSAPIAuthentication yes #提高速度,解决ssh登录缓慢的问题常用工具
隧道转发
Last updated