Linux-SSH-安全外壳
来源:互联网 发布:python执行mysql语句 编辑:程序博客网 时间:2024/06/06 14:49
rpm -qa | grep ssh
查看 SSH安装包
yum install openssh
安装SSH
ps -ef | grep ssh
查看是否在运行
service sshd start
开启服务
ssh root@X.X.X.X
使用SSH协议以root用户登录某设备
配置文件
/etc/ssh/sshd_config
Port —监听的端口,默认22
ListenAddress — 监听的地址
Protocol —SSH版本配置
PermitRootLogin —是否允许Root登录,默认允许
安全秘钥的访问方式
秘钥存放在服务器上。
ssh-keygen 生成秘钥对
[root@Test ~]# ssh-keygen Generating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): ---指定存放秘钥的位置,有默认位置Created directory '/root/.ssh'.Enter passphrase (empty for no passphrase): ----输入秘钥对应的密码,可以不设置Enter same passphrase again:
ssh-copy-id X.X.X.X 将公钥传送到指定设备上
PasswordAuthentication —配置验证方式,no为只能使用秘钥认证。
阅读全文
0 0
- Linux-SSH-安全外壳
- SSH:安全外壳协议
- SSH:安全外壳协议
- 安全外壳协议 SSH
- 安全外壳协议 ssh
- 安全外壳协议SSH详解
- ssh(安全外壳协议)
- ssh (安全外壳协议)
- ssh (安全外壳协议)
- SSH 安全外壳协议的基本知识
- 远程登录的安全外壳协议SSH
- 安全外壳协议(SSH)--网络大典
- Linux ssh安全设置
- linux安全登录,ssh
- Linux ssh安全配置
- Linux SSH 连接安全配置
- Linux下SSH安全设置
- linux ssh安全加固方法
- angular 增删改查
- python 模拟登陆人人(比较垃圾大牛勿喷)
- Mybatis 动态sql语句 if用法 使用心得记录
- Nepire的校OJ入门题解—17蓝桥选拔篇(五)
- 每天一个linux命令(8):cp 命令
- Linux-SSH-安全外壳
- linux文件描述符
- Spring MVC · 异常、响应状态对应表
- java jdbcTemplate执行sql
- spring boot项目热部署
- Android 弹射式扇形菜单按钮的实现
- docker 创建和使用私有仓库
- maven
- leetcode 572. Subtree of Another Tree 深度优先遍历DFS