set up some A records for ssh.fantasticsandwiches.biz pointing to your server and you haven’t let Cloudflare get its powerful and admittedly very efficient HTTP-proxying hands on it. So back you go to your console and lo:
On Client Machine
ssh-copy-id remote_username@server_ip_address
ssh-copy-id [email protected]
disable access to specific user through ssh. On server change snode to username
echo "DenyUsers snode" >> /etc/ssh/sshd_config
cat /etc/ssh/sshd_config | grep -i denyusers
systemctl restart sshd
must be run as root
cat ~/.ssh/authorized_keys
https://www.cyberciti.biz/faq/how-to-disable-ssh-password-login-on-linux/
/etc/ssh/sshd_config
Change password authentication to no
- Open the windows command line (type "cmd" on the search box and hit enter).
- It'll default to your home folder, so you don't need to cd to a different one.
- Type ssh-keygen
- Follow the instructions and you are good to go
- Your ssh keys should be stored at chosed directory, the default is: /c/Users/YourUserName/.ssh/id_rsa.pub
cat ~/.ssh/id_rsa.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys"
Download AutoHotKey
save the following as an .ahk
file in
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup
; Author: fwompner gmail com
#InstallKeybdHook
SetCapsLockState, alwaysoff
Capslock::
Send {LControl Down}
KeyWait, CapsLock
Send {LControl Up}
if ( A_PriorKey = "CapsLock" )
{
Send {Esc}
}
return