LTS 22 - using sshpass

Oliver Grawert ogra at ubuntu.com
Fri May 30 07:43:01 UTC 2025


hi,
Am Donnerstag, dem 29.05.2025 um 16:48 -0400 schrieb Robert Moskowitz
via ubuntu-users:
> Well, I found out that really my problem was for some reason I was
> being 
> prompted for fingerprint check and via sshpass this caused ssh to
> fail!
> 
> I did ssh by itself, accepted the password, then tried first your 
> format, then mine and it works.
> 
> So FIRST make sure you have the servers' fingerprint in your known-
> hosts!

With the ssh command alone you can turn of host key checking like:


ssh -o StrictHostKeychecking=no <hostname>

I have never used sshpass, but i would assume you should be able to do
something similar with it, you should check the manpage

ciao
	oli


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20250530/1d540344/attachment.sig>


More information about the ubuntu-users mailing list