Re: gpg decrypt from a script

2024-02-17 Thread Cameron Simpson
On 14Feb2024 22:49, Alex wrote: You don't need sshpass if you have the private key matching the public key already stored on the server. Just use ssh. This would be for use in a script - I'm assuming someone would use it as part of an automated backup script or when it's not possible to be at

Re: gpg decrypt from a script

2024-02-15 Thread Patrick O'Callaghan
On Wed, 2024-02-14 at 22:49 -0500, Alex wrote: > > > > > > > Also, I'm not new to Linux administration, but somewhat new to > > > sshpass. > > > Does it only work with ssh passwords or public keys as well? > > > > You don't need sshpass if you have the private key matching the > > public > >

Re: gpg decrypt from a script

2024-02-14 Thread Alex
> > > >Also, I'm not new to Linux administration, but somewhat new to sshpass. > >Does it only work with ssh passwords or public keys as well? > > You don't need sshpass if you have the private key matching the public > key already stored on the server. Just use ssh. > This would be for use in a

Re: gpg decrypt from a script

2024-02-14 Thread Dave Close
Alex wrote: >Also, I'm not new to Linux administration, but somewhat new to sshpass. >Does it only work with ssh passwords or public keys as well? You don't need sshpass if you have the private key matching the public key already stored on the server. Just use ssh. -- Dave Close,

gpg decrypt from a script

2024-02-14 Thread Alex
Hi, I recently found an article on using sshpass with gpg to script the process of connecting to a remote host using a password, while also encrypting that password in a file using gpg. $ gpg -d -q .sshpasswd.gpg | sshpass ssh u...@srv1.example.com