How to use SECURECRT to connect to Linux in a virtual machine
Https://jingyan.baidu.com/article/574c52191eb9996c8c9dc16a.html?st=5&net_type=&bd_page_type=1&os=1 &rst=&word=www.5pk.com
Beginner Linux, virtual machines with a NAT network, but also realize the virtual function of the Internet, but also can ping the host, but to achieve SECURECRT connected to the virtual machine, but not even on the Internet, some solutions, the record in this.
[Email protected] ~]# netstat-ant
Active Internet connections (servers and established)
Proto recv-q send-q Local address Foreign address state
TCP 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN
TCP 0 0 192.168.132.x:22 0.0.0.0:* LISTEN
TCP 0 0 x.x.x.x:22 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
TCP 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN
TCP 0 284 192.168.20.x:22 192.168.20.x:4755 established
TCP 0 0:: 1:5432:::* LISTEN
In the virtual machine with the Netstat-ant command, and did not look like the red record, online friends say it is the relationship between the firewall
There are three ways to solve this problem with friends on the Web:
Workaround:
______________________________________
First, open SSH
Log in to Linux as root, open terminal, run:/etc/init.d/sshd Restrat
______________________________________
Second, close the firewall
1. Run Setup at the terminal
2,. Select Firewall Enter
3. Press TAB to switch to the Disablede key, then press SPACEBAR to select, then press TAB to switch to OK, select by Space
4. Press the TAB key to switch to quit, select by Space
Then login to Linux with client SSH
______________________________________
Third, another way to turn off the firewall
/etc/init.d/iptables stop
______________________________________
Add:
Some versions of Red Flag Linux, do not allow the root user to remotely log in, need to modify the settings #vi/etc/ssh/sshd_config
Permitrootlogin No
#这就不允许root用户远程登录, to modify the Permitrootlogin Yes and restart the sshd service.
#service sshd Restart
I was using the second method, the firewall is closed, the result is resolved.
http://blog.csdn.net/lxlll1985/article/details/51885046
SecureCRT connecting Linux in a virtual machine