Chinaunix

标题: LINUX下的远程控制 [打印本页]

作者: chechi    时间: 2005-11-24 19:25
标题: LINUX下的远程控制
1 ssh 软件 openssh
软件的安装查询
[root@linux root] rpm -qa|grep openssh
ssh 启动
[root@linux root] /etc/init.d/ssh start|stop|restart
配置文件
/etc/ssh/sshd_config
参数简单说明
。port  监听端口
。protocol  2,1 使用的协议顺序
ListenAddress 0.0.0.0 绑定服务器的ip地址
PermitRootLogin  yes 是否让管理员登陆
PasswordAuthentication  yes   设置认证的方式如果是 no 则采用密钥认证方式
windows 下的 2个很好用的软件
putty
puttygen 产生公钥
puttygen 产生的公钥与openssh产生的公钥格式不一样需要转换
linux下的转换程序
[root@linux root] ssh-keygen -i -f /root/.ssh/公钥名字.pub>/root/.ssh/authorized_keys

/root/.ssh公钥存放的目录具体的格式是/用户名/.ssh/公共密钥

在windows 下使用putty 登陆




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2