Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / Windows系统下使用putty连接远程Linux主机

可以在windows平台下使用putty连接远程linux主机。如果putty提示“Connection refused”,那么可能是远程主机没有安装OpenSSH。可以通过命令# rpm -qa openssh# rpm -qa openssh-server查看是否安装OpenSSH。如果没有,需自行安装。一般系统安装盘中都有OpenSSH的安装软件包。如果已经安装了OpenSSH,那么可能的原因就是没有启动SSH了。这时候的情况一般如下:# /usr/sbin/sshd系统提示“Could not load host key: /etc/ssh/ssh_host_keyCould not load host key: /etc/ssh/ssh_host_rsa_keyCould not load host key: /etc/ssh/ssh_host_dsa_keyDisabling protocol version 1. Could not load host keyDisabling protocol version 2. Could not load host keysshd: no hostkeys available — exiting”大致的意思就是需要某个key什么的。解决办法如下:#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_keyGenerating public/private dsa key pair.Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /etc/ssh/ssh_host_dsa_key.Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.The key fingerprint is:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx root@localhost.localdomain#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_keyGenerating public/private rkey pair.Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /etc/ssh/ssh_host_rsa_key.Your public key has been saved in /etc/ssh/ssh_host_dsa_rey.pub.root@localhost.localdomain#/usr/sbin/sshd这时候,就可以在windows底下使用putty连接这台linux主机了。Ubuntu 下安装wine+emule软件用SSH KEY远程登录相关资讯      Windows Linux  putty 
  • PuTTY实现Windows向Linux上传文件  (08月07日)
  • 你应该丢弃Windows,选择Linux的五  (06月30日)
  • PuTTY 0.67 Beta 发布下载,SSH/  (03月06日)
  • PuTTY配置详解  (07月25日)
  • 为什么你应该放弃 Windows10 而选  (03月22日)
  • Windows应该是Linux在设计上的楷模  (10/18/2015 12:53:13)
本文评论 查看全部评论 (0)
表情: 姓名: 字数