[SOLVED] [OpenSSHd] Why prompted for passphrase on one server but not others?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[OpenSSHd] Why prompted for passphrase on one server but not others?
Hello,
Using the same public+private set of keys, unlike other servers in the lab, when connecting from Windows with the Kitty terminal application to a new Debian 11 host, I'm prompted for the passphrase:
Code:
Using username "root".
Authenticating with public key "Generated by joe@JOE-PC."
Passphrase for key "Generated by joe@JOE-PC.":
Before removing the passphrase as a quick work-around, I'd like to understand why this happens, as I don't see differences on the server and the client sides that might explain the difference in behavior.
You might check the permissions and ownership on the /home, home folder, ~/.ssh and its files, and on the /etc/ssh folder and files.
SSH will, and change its behavior due to differences in those permissions and ownership.
Passphrases and, for that matter, private keys have nothing to do with the server. Neither the passphrase nor the key itself ever leave the client. The authentication process uses them in a different way. Thus if the client is a legacy system with Windows and it is the only one misbehaving then what you have is a Windows problem, maybe check with a Windows forum instead.
But since you ask here, my approach would be to back up the client data, download Linux Mint, wipe the client hard drive with a fresh install of Linux Mint, and then restore the backed up data into that fresh installation. That will save a lot of work over time anyway. From there check about what kind of SSH agent you have running and whether the private key is loaded into it, some of that can be configured in ~/.ssh/config.
You have multiple hosts and one client. Are those folders and files on the client, a host with the behavior, or a host without the behavior?
You need to be very specific and clear here, because you are dealing with security software with very specific requirements and behavior.
The behavior occurs only with that freshly installed Debian 11 host, connecting from a Windows client that works fine with other Linux servers.
Being prompted for the passphrase is no biggie, but enough to want to turn off that "feature", especially since it doesn't occur when connecting to other Linux servers.
Using the same public+private set of keys, unlike other servers in the lab, when connecting from Windows with the Kitty terminal application to a new Debian 11 host, I'm prompted for the passphrase:
Not sure if you know this, or even if you're interested, but Windows comes with OpenSSH client built in. You can just open a cmd prompt and type:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.