In order to access a server we use ssh
where the keys protected by a passphrase.
We want to generate a long passphrase such that the keys themselves are not enough to access that machine and the passphrase is hard to hack.
ssh-agent
can store passphrases. The problem is however that such agent stores the passphrase in a file at the client side, which makes it easier to access the server if one has access to the client machine.
Is it possible to store part of the passphrases on an external drive. In that case one can store the passphrase let's say on a USB drive one caries with him and accessing the server is still convenient. It should be nice if the ssh-agent
could detect the drive automatically such that one can invoke ssh
without having to "bind" the external drive to the ssh-agent
first.
As a concequence one should only be able to access the server given he/she has access to both the client (storing the ssh
keys) and the external drive (storing the passphrase).