I’m trying to use key + password and set the sshd config with Passwordauth yes and authenticationmethod password, key. But it’s still only doing the Key.
(Sorry not exact, computer is down so I’m on my phone but if needed I can copy and paste.)
I’m trying to use key + password and set the sshd config with Passwordauth yes and authenticationmethod password, key. But it’s still only doing the Key.
(Sorry not exact, computer is down so I’m on my phone but if needed I can copy and paste.)
Hi @Temple_Pate you may set passphrase when you generate ssh key. Then you will have a password.
When you are trying to connect VyOS you will use key and password (which was set during ssh key generation process).
In linux and windows (when you activate) “ssh-keygen” command.
For example:
Linux Distro’s
Open your terminal and type ssh-keygen
ssh-keygen
It asks for the names of the ssh key pairs. If you wish to enter the passphrase, go on and ssh-keygen will automatically create your keys.
//Output
Generating public/private rsa key pair.
// enter the name for ssh key pairs
Enter file in which to save the key (/home/root/.ssh/id_rsa):
// enter passpharse for security
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
// ssh keys generated
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
https://docs.vyos.io/en/equuleus/configuration/service/ssh.html?highlight=ssh#configuration
Sorry, to clarify Ive already got that setup. My goal is to also require the User Password as well as the SSH Key and passphrase.
Here is a link for a similar discussion. It’s the Second option/example given in the answer.
But even after setting the authentication method it’s still only utilizing the ssh key. I know this method works as I use it on my personal servers, so I assumed there was some config somewhere that was causing it to only require the ssh key.
Thanks!
Add a feature request on vyos.dev
Also it will be interesting for you Login/User Management — VyOS 1.4.x (sagitta) documentation
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.