Remember the Securecrt+ubuntu SSH server's remote public key (Yue four tones) login

Source: Internet
Author: User
Tags get ip ssh server ubuntu ssh server

Looked down patiently, elder brother is realized, and all the details will give quite rich ha.

Ubuntu:ubuntu 14.04 LTS

OpenSSH

WINDOW10 (64-bit): secureCRT8.0


See online as the same as the cattle said git+ssh use, build their own git server, so hey, so the action up, first to win10 installed Git, and then installed on Ubuntu SSH (This step is very simple, do not say, there is a general tutorial, I am only write as the same cattle do not

Attention to the details, for your friends to reference! Then download a secureCRT8.0 and start making a dead connection.

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/07/E1/wKiom1nThFGxeTzSAAAUtpuhLIk321.png-wh_500x0-wm_ 3-wmp_4-s_1369455417.png "title=" Blog-10-3-1.png "alt=" Wkiom1nthfgxetzsaaautpuhlik321.png-wh_50 "/>

In the Ubuntu end Ifconfig get IP, and then open the dense fill in ready to start the SSH trip, the results of the username, what is it? Anyway, the account password is not landing success, also do not know what evil. And then look on the internet to be safer and more convenient

Public key (with I read y u e--yue four tones) landed, thinking about the good account of the bad---password login also didn't mean, straight brother to the public key landed also fix it, later use up convenient, one step, how good! (so began to toss the road)

SB said: Such a client generates a private key and public key, and then transfer the public key to (do not laugh brother Low, I am using USB copy) server side, and then inside, each time the server will use the public key to encrypt a text to the client, the client with its own private key decryption, and then sent to the client, and then landed, \ (^o^)/At least in theory. Then I open the dense with secureCRT8.0 generate the public key, I describe it, the picture is too lazy to paste, like me this lazy god more toss than a toss:

Tools>>create Public Key ... Next>>rsa>>passphrase (Do not fill, confirm are directly to enter) generated, and then note Save As OpenSSH (traditional legacy mode), and then I exasperate set a good public key login, such as (options> >global Options): Click SSH2 in the left-hand window and select the private key from the pair of keys you just generated:

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/07/E2/wKiom1nThzTSgBaXAABHodAo8bs096.png-wh_500x0-wm_ 3-wmp_4-s_3392871269.png "title=" Blog-10-3-2.png "alt=" Wkiom1nthztsgbaxaabhodao8bs096.png-wh_50 "/>

(This picture brother cut clever, try to let 51cto.com tag not cover their own picture Ha!) )

Then open the dense copy of Identity.pub's public key to the server, and then said to configure the Etc/ssh/sshd_config file, and then I found a connection according to the configuration

(http://blog.csdn.net/lansesl2008/article/details/16113193)

, opened the public key login, closed the account landing what, the port itself set a 63617, hehe is less than 65536, 63: Sister name, 617: Sister's birthday.

Then, someone will notice such a configuration (Etc/ssh/sshd_config):

Authorizedkeysfile. Ssh/authorized_keys

Yes, you guessed it, here's where you're going to store the public key, but there's a lot of root/. SSH and its authorized_keys,

(1) This is also said MkDir, Gvim to build their own Bai,

(2) then copy the Identity.pub to. ssh/, then cat identity.pub >> Authorized_keys, further

(3) chmod author ..., and CD.

(4) chmod. SSH and

(5) Service SSH restart

On it, and then there is not know why or to enter the user root, anyway, you can log in, you can use, I will go to busy more important thing!


Remember the Securecrt+ubuntu SSH server's remote public key (Yue four tones) login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.