Sample Header Ad - 728x90

SSH: How to verify the passphrase of a key but without doing an attempt of ssh connection?

1 vote
2 answers
82 views
About SSH I know the following command works:
ssh -i id_rsa @
Of course: * The remote server must be running * The **passphrase** of the id_rsa key is requested and if it is valid then the SSH connection happens in peace Until here all is ok --- I want to know if is possible test the passphrase but without doing an attempt of connection to the remote server. It in case: * _If_ the server is down due maintenance _and_ is need it verify if the passphrase is correct **Remember**: if the server is down then is not possible execute the ssh -i id_rsa @ command. _If is possible:_ **Question** * How to verify the passphrase of a key but without doing an attempt of ssh connection? Therefore something like:
id_rsa
Write passphrase: 
Passphrase is correct
Asked by Manuel Jordan (2108 rep)
Apr 17, 2025, 02:50 PM
Last activity: Apr 17, 2025, 04:14 PM