ssh-copy-id script

Advertisement

henry3
Donor
Joined:
Posts:
23

ssh-copy-id script

When I use Tools > Install Public Key into Server command, I notice it checks to see if the key already exists. Do you download authorized_keys and check it locally, or call grep on the remote server? I wanted to add a new key to a list of servers, and did it using put -append, but that doesn't check if the key is already on that server. I didn't see a way to get the result code from a call, other than creating some type of flag.
Thanks,
Henry

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,541
Location:
Prague, Czechia

Re: ssh-copy-id script

The "Install Public Key into Server" uses pure SFTP, so it cannot do any "grep". It downloads and checks locally. I'll consider adding a command-line equivalent.

Reply with quote

Advertisement

You can post new topics in this forum