Mission : Let's say my remote server's firewall
is configured to allow only my specific home IP
to connect to port 22
and because of this I am not worried about security for this test. And maybe I also plan on using a very complex username such as "user_name_82391274829"
Is it possible for me to SSH
to my server like this ? :
ssh user_name_82391274829@server
server:/#
In other words, it simply logs in,
without a password and without an ssh-key.
Note :
It should also work with SCP
Best Answer
The other answer has many valid points. Read it because I won't repeat them. My answer is a practical guide.
Set an empty password on the server (I assume
user_name_82391274829
exists in the system;chpasswd
needs root access):Note this is different from no password at all. After I set no password at all (
passwd -d user_name_82391274829
) the solution did not work, so stick to the above line withchpasswd -e
.Proper values in
sshd_config
on the server:Invoke
systemctl reload ssh.service
or equivalent command to reloadsshd
.Tested on Debian 9.