Auto accept certificate

Advertisement

Blisk
Joined:
Posts:
10
Location:
Slovenia

Auto accept certificate

How to make a script to send files and auto accept certificate instead of putting in script a key which can change?
For example to skip this in script and auto accept and connect ssh-rsa 2048 xxxxxxxxxxx...=:
open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx...="

Reply with quote

Advertisement

Blisk
Joined:
Posts:
10
Location:
Slovenia

thank you for info.
I don't have any that much important data. I use this just to send some files over internet.
Problem is, when sending files stops to work when certificate changes and I don't know that.
Is there a way to accept certificate only when server name match "myserver" or only for servers with IP - my ip server"123.123.123.123"
This will be much safer.

Reply with quote

martin
Site Admin
martin avatar

I do not understand. The -hostkey=* applies only to that open command. So only to the server (hostname or IP) that you specify in the open command.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum