Arquivo da tag: SSH

How to SSH into a Ubuntu server after getting a “permission denied (publickey)” error

Updating your SSH configuration to allow password authentication

  1. Once you’ve launched the console, it will ask you for your user name and password. If you had to reset your root password and are using your root user to log in, it will prompt you to create a new password by typing it twice.
  2. Once you are logged in, you will need to update your sshd_config file by typing:
vim /etc/ssh/sshd_config

or if you are accessing it with a non-root user with sudo privileges, type:

sudo vim /etc/ssh/sshd_config

3. From there, you want to type i for INSERT (to edit your file) and find the option that says PasswordAuthentication no and update it to

PasswordAuthentication yes 

Then, type:

esc

followed by:

:wq

to write and quit out of the file, followed by hitting enter.

https://medium.com/@hidace/how-to-ssh-into-a-digitalocean-server-after-getting-permission-denied-publickey-error-77b687c2880d

Share and Enjoy !

0Shares
0


0

MAC – Warning: Remote Host Identification Has Changed error and solution

And hit dd command to delete line. Save and close the file. Or use following

vi ~/.ssh/known_hosts

OR

vi /var/root/.ssh/known_hosts

Now go to line # 2, type the following command

:2

Now delete line with dd and exit:

dd
:wq

https://www.cyberciti.biz/faq/warning-remote-host-identification-has-changed-error-and-solution/

Share and Enjoy !

0Shares
0


0