Today, when you practice the Linux command line suddenly, you want to contact the Linux command line in window. After some Dudu found a good tool (securecrt--meaning safe) is to use SSH link to the Linux host. Recommended for everyone to use. After all, the window has a little song, the next small movie while practicing Linux command line ha! ~ Thanks for the mighty VMware11
Find a lot of blogs, not exactly follow the steps can also be successful ... Hi, Rob! After all, I am also just a learner!
SECURECRT is a terminal emulator that supports SSH (SSH1 and SSH2), simply the software that logs on to UNIX or Linux server hosts under Windows. This does not have to go to the Linux desktop, it is more convenient to operate under the command line.
0. Environment
Host Os:windows 8.1 64bits
Virtual Machine Os:ubuntu 15.04 64bits
vmware:11.1.0
securecrt:7.1.1.264 64bits
1, check your machine window (host) bridge is not disabled,
In some special cases the machine will be disabled ....
2, go to Ubuntu, first check the Ubuntu virtual machine IP configuration, open terminal (ctrl+alt+t), through the ifconfig command view, you can see the IP address information under Ubuntu. Back to Window Win+r-->cmd--ipcong view your computer's IP, first on the Windows ipconfig and Ubuntu ifconfig to ping each other, if our environment is a kind, there should be no problem. Some tutorials have changed the way virtual machines are linked to NAT However, I changed the ping to each other, so I changed back to bridge mode (direct connection to physical network). To ping each other to the next step.
3, the installation of SSH, the general machine is not installed.
Test ssh ubuntu on ssh localhost
Appeared::: Ssh:connect to host localhost Port 22:connection refused description your machine is not ssh.
Open the Ubuntu terminal and enter:
sudo apt-get install Openssh-server
SSH is started by default when the installation is complete. You can use the following command to see if a process is listening on port 22, that is, whether it is started:
Netstat-nat | grep 22
What I'm showing here is this ghost, and I thought it was a failure. But no!
If you're still not successful, try shutting down the firewall.
If you can't connect, we need to shut down the firewall.
Turn off firewall sudo ufw disable
My machine didn't show up in this situation ~
So far the work on Ubuntu has been done, back to Window's SECURECRT
Create a new link
Of course, may not know your account is what ~ haha, I do not know ... Command ====$ users to see your user name.
Log in and go ....... .......
After the successful login and my interface is not the same then you have to pay attention, there are two or three steps/
If prompted
The server has a disconnected with an error. Server message reads:
A protocol error occurred. Change of username or service not allowed: (root,ssh-connection)-(ubuntu64,ssh-connection)
Perform
This is because the user name in the SECURECRT setting does not match the username you entered when you logged in, and you can change it here:
user name , connection ---dialog options, options
After the modification, the login is OK, which can disable the root login of the server (for security).
The default is root, which is changed to your user name.
If the command line is garbled, because SECURECRT Chinese display garbled
Options, session options, terminal-and appearance, character encoding select UTF-8
Tap the command line .... Worth having
Reference http://www.linuxidc.com/Linux/2015-05/117048.htm
Http://www.linuxidc.com/Linux/2016-03/129007.htm
http://blog.csdn.net/zxx2403/article/details/46959047
Using SECURECRT to connect to a Linux system in a virtual machine (Ubuntu)