Turn off SSH passwords in Ubuntu, connect via SSH keys only
Once you have a successful connection to your remote instance with SSH keys, it is better practice to disable SSH Password Authentication to mitigate further bruteforce password attempts, this coupled with a service like Fail2ban will further strengthen your Virtual instance. Remote into your VPS via SSH and open the SSH config file: nano /etc/ssh/sshd_config…
Read MoreTweaking RunCloud Servers After Deployment
Here are some references for various fix ups or tweaks that I apply to servers with a RunCloud control panel. These are not all done inclusively, depends on the need. Change root password You root password initially generated by your host provider might be on the weak side always best to change and strengthen it.…
Read MoreHow to make your SSH Terminal shell sessions last longer on macOS
If you find that your SSH shell sessions to remote computers are timing out too quickly with the error “Write failed: Broken pipe”, you can make a simple configuration to keep these sessions going as long as you have your terminal shell window running: Move into your SSH settings folder cd ~/.ssh Create a local…
Read MoreGenerate SSH Private and Public Keys in macOS Big Sur
This guide goes through setting up SSH keys on macOS Big Sur 11 and olfer macos’es back to Mac OSX 10.11 and also a secure password-less SSH connection between a local macOS workstation and a remote server also running a Linux variant operating system. The process requires generating a public and private key on the…
Read MoreForce Password on SSH Connection
This is the command to force a SSH password between a client and server, you may have passwordless connection set up with SSH keys but want to check that a password is correct. ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no [email protected] Swap out [email protected] with your connection details. Once logged in, if you want to change the…
Read More