The Simple and easy tricks to remove ssh password infinite input and let your self "Not Hackers" to ssh passwordless login, Simple ssh command can ssh without password easy login, No more logins using ssh with password. Long live lazy people

How To SSH passwordless login

You need to be lazy enough to ssh passwordless login and automate your logins with ssh without password, you need to ssh passwordless login to make it easier and faster to login you servers, Now you can follow the ssh command written to make it easier and faster to log in your Server ssh passwordless login.

 

The Simple and easy tricks to remove ssh password infinite input and let your self "Not Hackers" to ssh passwordless login, Simple ssh command can ssh without password easy login, No more logins using ssh with password. Long live lazy people

 

Login in ssh with password

I have a long time working with servers so I'm getting bored because I don't save passwords, I've to open emails and tickets and check each customer server credentials to log in their servers and manage it.

so I got an idea to create a short command and that let me login directly without asking me about IP, Username or even password. follow up on these steps to set your short commands.

Where can I use the ssh command and commands to login ssh without password

Well, the answer to this question is that you can make ssh command and move over your ssh password that with macOS or Linux (Centos, Ubuntu, Debian or RedHat) Terminal.

each time you log in your server you execute this command

# ssh username@host

and you may use custom port too, so you add it to the command like this

#ssh username@host -p 2059

now you can short this code by adding it as an alias on your terminal by following this step

# nano ~/.bash_profile

and add this line

alias my_server="ssh [email protected]"

 

The Simple and easy tricks to remove ssh password infinite input and let your self "Not Hackers" to ssh passwordless login, Simple ssh command can ssh without password easy login, No more logins using ssh with password. Long live lazy people

 

Save the file, now we created the alias, so we can just use this command

# my_server

and if you're lazy like me you can write my and press tab button so it will be autocompleted itself

now we need to access without a password, so we will create certificate to let the server know us, it's recommended to create a different certificate for each server for security purpose. follow me to create your certificate and copy it to the server.

# ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/a/.ssh/id_rsa):

Created directory '/home/a/.ssh'.

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/a/.ssh/id_rsa.

Your public key has been saved in /home/a/.ssh/id_rsa.pub.

The key fingerprint is:

3e:4f:05:79:3a:9f:56:7c:3b:ad:e9:57:37:bc:37:s4 a@A

Now copy the certificate to your server and enter your server password one last time.

# cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'

No more ssh with password

we're now done, now you can easily log in with no longer ssh with password, Keep lazy and automate everything.

 

 

Category: hosting
Views: 5548

Laila Fahmy

About author
A Brilliant Egyptian team memeber, Social media and statistics expert. In love with playing soccer and reading literature books.

{{comments.length}} Comments

{{comment.name}}

{{comment.name}} · {{comment.created}}

{{sc.name}}

{{sc.name}} · {{sc.created}}

Post your comment

64x64
Reply to {{parent.name}} close

Similar Stories


Marketing

Social media agencies Dubai: Guide to knowing more

 Social media agencies Dubai: Guide to knowing moreSocial media has become an important part of good marketing strategy in this digital age.  As social media continues to grow, businesses must choose to remain relevant and reach their target  audience effectively. This is where our social media agencies…

subject Read
Entrepreneurship

Tricks, Tips & Sales Techniques to increase your sales

The tricks and sales techniques to increase your sales, How to increase sales and how to improve business sales? learn more about sales promotion and how to build a better customer loyalty.Tricks, Tips & Sales Techniques to increase your salesThe complete guide, Tips, Tricks, And…

subject Read
Search Engine Optimization

How does Googlebot making the google index website process?

How does Googlebot making the google index website process, And how google index site using google crawler and bots? learn the basics of making google easily index your website. and make it as quick as possible.How Long Googlebot ( Google crawler ) for Making Google…

subject Read