虚拟机XP 连接 虚拟机 linux
来源:互联网 发布:电脑教室批量安装软件 编辑:程序博客网 时间:2024/06/07 09:35
使用软件: putty
虚拟机都使用 NAT 这样他们处于 一个网段中
linux 下 ifcondif 查看IP
XP 下 ipconfig 查看IP
linux 下查看 用户 密码等 cat /etc/passwd
问题:
使用putty登录显示network error:Connection refused 或者显示network error:Connection timeout
解决方法:
1.vi /etc/ssh/sshd_config 将PermitRootLogin的注释取消,或者将no改为yes。(如果没有sshd_config文件说明linux上没有安装SSH,使用 yum -y install ssh安装之后,sshd-config文件中PermitRootLogin选项默认的是yes,新安装的ssh不用操作下面两部)
2.
root@bt:~# /etc/init.d/ssh restart
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
* Restarting OpenBSD Secure Shell server sshd Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
解决方法:
root@bt:~# ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key
Generating public/private rsa key 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_rsa_key.pub.
The key fingerprint is:
85:e6:83:c5:a9:91:0d:8e:2a:6b:b1:e5:7b:db:d3:b2 root@bt
The key's randomart image is:
+--[ RSA 2048]----+
| . |
| o = o |
| . + B . |
| . B . |
|.... o S |
| o= . |
|.o . . |
|. ...o . |
| ....E+ |
+-----------------+
root@bt:~# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
Generating 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:
bc:0d:45:c8:62:85:c4:6e:a2:90:e4:3b:e4:38:8a:35 root@bt
The key's randomart image is:
+--[ DSA 1024]----+
| o.+... |
| . = o. |
|o. o . . |
|oo . o. . |
|+... o S |
|o+E + |
|oo.. . . |
|o |
| |
+-----------------+
3.service iptables stop命令进入将防火墙关闭。
最后 登陆 用 root 账户登陆
另外 更新 MSF : http://blog.chinaunix.net/uid-13344516-id-3597709.html
- 虚拟机XP 连接 虚拟机 linux
- 1.初级入门 xp sqlplus 连接 linux虚拟机 oracle
- secureCRT连接linux虚拟机
- xshell连接虚拟机linux
- ftp连接虚拟机linux
- XShell连接虚拟机Linux
- XShell连接虚拟机Linux
- SecureCRT 连接虚拟机Linux
- SecureCRT 连接虚拟机Linux
- Xshell连接虚拟机linux
- MobaXterm连接Linux虚拟机
- virtualbox虚拟机XP连接本地WinXP
- windows 7 远程桌面连接虚拟机中的 xp
- sqlserver 在xp虚拟机安装,远程连接
- 如何在xp下安装linux虚拟机
- Linux下安装window xp虚拟机
- 虚拟机中的LINUX连接网络
- 虚拟机linux 与 ssh连接
- ubuntu12.04安装Qt(非软件源安装)
- XMPP 文件传输协议
- SSH_Annotaction高配架构
- 根据条件设置repeater中生成表格的样式
- NS2学习资料(值得收藏)
- 虚拟机XP 连接 虚拟机 linux
- C++基础(二)C/C++中的静态、非静态成员函数、变量
- i2c驱动调试经验
- 电子商务电子支付实训
- WCF大数据传输
- Golang发送post表单请求
- 动态加载模型
- TCP传输协议抓包经验
- 黑马程序员——【Java】IO——管道流