Suppose you pc it is a Linux system. Then directly with the terminal SSH command is possible. Assume a Windows system. It is necessary to use sshclient.
PS: I dual system.
Sometimes, they want to use Windows.
Sshclient on Windows
There are several ways to log on to a remote host on Windows:
The putty is compact and requires no installation. But not beautiful enough, work rough. SecureCRT I useless, under a seemingly charge, too lazy to find a crack. And SECURECRT does not support the protocol for file transfer. Finally, try Xshell. Xshell Basic Configuration Login
Go directly to the official website. The download and installation are very easy.
When the installation is complete, open it and you will be prompted to create a new session:
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3vvzg9uz3hpyxjlbg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">
Enter a host name. Then click User Authentication on the left.
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3vvzg9uz3hpyxjlbg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">
to remember password!! you don't have to enter username and password every time you log in.
Color scheme
In the tool options in the menu bar. There is a color scheme. Dot open it. You can choose the delivery solution that comes with your system. or define your own distribution plan.
I myself defined a black-bottom green word. Seems to be the "hacker Empire" in the "Hacker style color".
Attention. The color scheme can only change the foreground (word) and background of the Xshell, while the colour of the file (for example, the LS command) is determined by the remote host's configuration file.
Form Transparency
Let's say you like a transparent background, then click, Tools--options--to view. Click Make the form transparent and adjust the transparency yourself.
Change Folder file color
Before I changed the background to black, assuming I use the LS command, then the folder color from the dark blue, so the folder name will be very unclear. At this point we want to change the color of the folder, we need to change the remote host configuration file, not Xshell configuration.
Final display effect: (right-click to view the image.) See the big picture)
Define your own shortcut keys
After using the Xshell. Found a little drawback, that is not support ALT and. The key combination.
In the traditional bash. Press the ALT +. Shortcut key to proactively type the last parameter of the previous command. This is generally a very useful feature, especially when the last parameter of the previous command is very long.
。
To make up for this, we click: Tools--Options--Keyboard and mouse--edit--new.
Then press the key combination according to the prompts, Alt and.
Then select "Send string" in the "type" drop-down list, then enter!$ in "action"
Don't be surprised, just let the key combination type these two characters on their own initiative. Assuming you try it, you'll find that it's what you want to achieve.
This two-character bash special variable is the last argument to the previous command referenced.
By the way.
Assuming you want to take the initiative to fill in the first number of previous commands, use!^
SSH Public Key Login
Before we logged in using Xshell, we were logged in by username and password. And because Xshell can remember the password, it can also realize the free input direct login.
But sometimes such a way is unsafe, so you might prefer to log in with SSH's public key.
Generate Public key
Click the tool for the menu bar, and then open the user public Key Manager:
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3vvzg9uz3hpyxjlbg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">
Click Generate, and then:
Here we choose the RSA algorithm. This algorithm is supported by SSH1,SSH2. Then the next step is:
Here you can first key name.
The following password are writable and can not be written. Next step:
Choose Save as file to save the public key to a directory in your PC. Remember the location of this file OH.
Configure on the remote host
Open Xshell. Click the form in the menu bar. Select new transfer file. A new session--sftp command prompt is then opened.
- Type put to open a File selection dialog box. Select your public key file. For example put id_rsa_1024.pub (note that the public key is suffixed with. pub).
Log in to your remote host with username and password.
Under your home folder (assuming it is the root user.) /root/), create a new folder . SSH, note that it starts with a dot.
Rename the above public key file to Authorized_keys and save it to the. SSH folder. To run the command:
Cat Id_rsa_1024.pub >>.ssh/authorized_keys
Note the location of the folder where you are currently located.
New Public Key Logon session
In user authentication, select the appropriate option.
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3vvzg9uz3hpyxjlbg==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">
You can use it later, select the registered public key.
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Rookie operation and maintenance considerations: Windows about using Xshell to manage your cloud host