Runs in your browser · nothing uploaded

Password Generator for Servers and SSH

Internet-facing servers see constant automated SSH login attempts using common usernames and leaked passwords. Even if you log in with keys, you still need strong passwords for sudo, the root account, the hosting console and key passphrases. Generate them here and lock down how your server accepts logins.

Keys for login, passwords for everything else

The strongest setup is to log in over SSH with keys only and set PasswordAuthentication no in sshd_config once your key works. Passwords are still used for sudo, for the emergency console in your hosting dashboard and for root if you ever need to log in locally. These should be long and random, at 20 to 32 characters with all types switched on, because you will normally paste them from a password manager.

If your provider’s web console does not support pasting, use letters and numbers only at a slightly greater length to make typing easier.

Protecting your SSH key

An SSH private key without a passphrase is only as safe as the laptop it sits on. Add a passphrase when you create the key or later with ssh-keygen -p, and let your SSH agent remember it during a session. A random 20-character passphrase from this generator, saved in your password manager, works well.

Questions

Do I still need a strong password if I use SSH keys?

Yes. Your user’s password protects sudo, and the root or console password is your way back in if keys fail. If an attacker gains a shell through a vulnerable app, a weak sudo password makes it easy to become root.

Which symbols can cause problems on Linux?

Passwords typed at an interactive prompt accept any symbol. Problems appear when passwords are passed in scripts or command lines, where characters like $, ! and quotes are interpreted by the shell. For scripted use, turn symbols off and increase the length.

Should every server have a different root password?

Yes. If one server is compromised and its password reused, the attacker can move to the others. A password manager or secrets vault makes unique passwords for each server practical, even for a large number of machines.

Protect your business with a security review and hardening from VYZEON.

See cybersecurity

More ways to use the Password Generator