SSH - PasswordLess

tienloc1
Posts: 27
Joined: Sun Aug 08, 2021 9:58 pm

May this one will help

Code: Select all

Aug 25 18:32:55 tienloc sshd[39705]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Aug 25 18:32:55 tienloc sshd[39705]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Aug 25 18:32:57 tienloc sshd[39691]: Accepted password for admin from 27.71.60.226 port 49337 ssh2
Aug 25 18:32:57 tienloc sshd[39691]: pam_unix(sshd:session): session opened for user admin by (uid=0)
Aug 25 18:32:57 tienloc systemd-logind[357]: New session 171407 of user admin.
Aug 25 18:32:57 tienloc systemd: pam_unix(systemd-user:session): session opened for user admin by (uid=0)
Aug 25 18:32:58 tienloc sshd[39705]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=134.122.120.235  user=root
Aug 25 18:33:00 tienloc sshd[39705]: Failed password for root from 134.122.120.235 port 57350 ssh2
Aug 25 18:33:02 tienloc sshd[39705]: Received disconnect from 134.122.120.235 port 57350:11: Bye Bye [preauth]
Aug 25 18:33:02 tienloc sshd[39705]: Disconnected from authenticating user root 134.122.120.235 port 57350 [preauth]
Aug 25 18:33:03 tienloc sshd[39730]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Aug 25 18:33:03 tienloc sshd[39730]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Aug 25 18:33:05 tienloc sshd[39730]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=161.35.49.78  user=admin
Aug 25 18:33:08 tienloc sshd[39730]: Failed password for admin from 161.35.49.78 port 55730 ssh2
Aug 25 18:33:11 tienloc sshd[39730]: Received disconnect from 161.35.49.78 port 55730:11: Bye Bye [preauth]
Aug 25 18:33:11 tienloc sshd[39730]: Disconnected from authenticating user admin 161.35.49.78 port 55730 [preauth]
tienloc1
Posts: 27
Joined: Sun Aug 08, 2021 9:58 pm

Sorry, I think this one is correct than the previous.

Code: Select all

Aug 25 18:15:51 tienloc sshd[38474]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Aug 25 18:15:51 tienloc sshd[38474]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Aug 25 18:15:51 tienloc sshd[38474]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=175.138.108.78  user=admin
Aug 25 18:15:53 tienloc sshd[38474]: Failed password for admin from 175.138.108.78 port 34036 ssh2
Aug 25 18:15:54 tienloc sshd[38474]: Received disconnect from 175.138.108.78 port 34036:11: Bye Bye [preauth]
Aug 25 18:15:54 tienloc sshd[38474]: Disconnected from authenticating user admin 175.138.108.78 port 34036 [preauth]
tienloc1
Posts: 27
Joined: Sun Aug 08, 2021 9:58 pm

I'm using roboform to fill the password now :(, is there any way to save the password and fill it like roboform in the cmd/terminal? Every time scp/rsync/curl/ssh required the password and it's a pain to fill the password every time.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Not investing in the problem - 'admin' account should not be used for hosting sites - because of security.
Can you move sites to another account?
tienloc1
Posts: 27
Joined: Sun Aug 08, 2021 9:58 pm

myVesta wrote: Fri Aug 26, 2022 3:36 pm Not investing in the problem - 'admin' account should not be used for hosting sites - because of security.
Can you move sites to another account?
Thank you for your suggestion. Yes, maybe move sites to another account is the best solution.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Commands that can help you:

Code: Select all

v-change-domain-owner DOMAIN USER
v-change-dastabase-owner DATABASE USER
v-move-domain-and-database-to-account DOMAIN USER
Last one will try to figure out database name and to move it automatically with domain (should work with WordPress)
tienloc1
Posts: 27
Joined: Sun Aug 08, 2021 9:58 pm

myVesta wrote: Fri Aug 26, 2022 6:08 pm Commands that can help you:

Code: Select all

v-change-domain-owner DOMAIN USER
v-change-dastabase-owner DATABASE USER
v-move-domain-and-database-to-account DOMAIN USER
Last one will try to figure out database name and to move it automatically with domain (should work with WordPress)
Thank you so much for your best support.
Post Reply