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
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
> >
>
>
> >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
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,
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