【redhat5.5】ssh服务器的配置
来源:互联网 发布:盟军敢死队3mac攻略 编辑:程序博客网 时间:2024/05/17 02:11
【1】 ssh服务介绍
1】 为客户机提供安全的Shell环境,用于远程管理
默认端口: TCP 22
2】 主要软件包
openssh-server openssh-clients
3】 sshd 服务名
/usr/sbin/ssh 服务端主程序
/usr/bin/ssh 客户端主程序
/etc/ssh/sshd_config 服务端配置文件
/etc/ssh/ssh_config 客户端配置文件
4】启动sshd服务
service sshd start
【2】 使用ssh命令远程登录的三种方式
1】 [root@uplooking ~]# ssh root@10.10.68.251
2】 [root@uplooking ~]# ssh -l root 10.10.68.251
3】 [root@uplooking ~]# ssh 10.10.68.251
【3】 使用scp命令远程复制文件/目录
1】[root@uplooking ~]# scp root@10.10.68.251:/install.log /root
2】[root@uplooking ~]# scp -r soft root@10.10.68.251:/root
【4】 更改验证方式
1】允许使用密码登录
PasswordAuthentication yes
2】允许使用密钥对验证
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
【5】 客户端生成密钥对并上传服务器
1】 生成密钥对
# ssh-keygen
生成:
id_rsa 私钥 自己保存使用
id_rsa.pub 公钥 上传服务器
2】上传公钥
scp id_rsa.pub root@10.10.68.1:/root/.ssh/authorized_keys
1】 为客户机提供安全的Shell环境,用于远程管理
默认端口: TCP 22
2】 主要软件包
openssh-server openssh-clients
3】 sshd 服务名
/usr/sbin/ssh 服务端主程序
/usr/bin/ssh 客户端主程序
/etc/ssh/sshd_config 服务端配置文件
/etc/ssh/ssh_config 客户端配置文件
4】启动sshd服务
service sshd start
【2】 使用ssh命令远程登录的三种方式
1】 [root@uplooking ~]# ssh root@10.10.68.251
2】 [root@uplooking ~]# ssh -l root 10.10.68.251
3】 [root@uplooking ~]# ssh 10.10.68.251
【3】 使用scp命令远程复制文件/目录
1】[root@uplooking ~]# scp root@10.10.68.251:/install.log /root
2】[root@uplooking ~]# scp -r soft root@10.10.68.251:/root
【4】 更改验证方式
1】允许使用密码登录
PasswordAuthentication yes
2】允许使用密钥对验证
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
【5】 客户端生成密钥对并上传服务器
1】 生成密钥对
# ssh-keygen
生成:
id_rsa 私钥 自己保存使用
id_rsa.pub 公钥 上传服务器
2】上传公钥
scp id_rsa.pub root@10.10.68.1:/root/.ssh/authorized_keys
- 【redhat5.5】ssh服务器的配置
- 【redhat5.5】dhcp 服务器的配置
- 【redhat5.5】ftp服务器的配置
- 【redhat5.5】 samba服务器的配置
- 【redhat5.5】远程日志服务器的简单配置
- redhat5 DHCP服务器配置
- redhat5.3 DNS服务器配置
- 【redhat5.5】linux的LDAP认证服务器的配置及客户端pam网络验证实例
- 【redhat5.5】NFS服务的配置
- redhat5 UDEV的配置
- Linux(Redhat5.5)配置时间服务器(Ntp)法
- redhat5.8配置SSH遇到 Permission denied
- RedHat5.5配置
- 配置SSH服务器的步骤
- 服务器的配置(ssh)
- 【redhat5.5】配置Apache的别名的pam认证
- 【redhat5.5】dns 基本配置
- 【redhat5.5】SELinux的基本配置和使用思路
- Emacs 主题设置
- Pinterest简介
- showHole.jsp
- poj 2752 Seek the Name, Seek the Fame(KMP)
- U盘安装CentOS 6.2(超级详细图解教程)
- 【redhat5.5】ssh服务器的配置
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in names
- 杭电ACN 1282 回文数猜想
- 你坚持下来了,这就是你的资本 2012-03-18 10:28:49
- ,可以是流浪汉,但你必须是个理想主义者。 当你浮躁的时候,请看看! 2012-03-18 09:57:13
- 分析当前数据库
- Linux服务器的网络监控
- poj 2406 Power Strings(KMPnext性质)
- 仿凤凰网的注册页面,javascript完成简单的空/邮箱格式/字符串的长度校验 ajax完成服务器端是否同名校验