I'm assuming the only reason you can't just directly connect via ssh to
ferguson as the user
admin is simply because either no password is set for
admin or you just simply don't know it. There could be other reasons for this not working, such as no login shell.
The best solution for this is to use SSH keys.
On your Linux VM, if you haven't already, generate a public/private key pair:
$ ssh-keygen -t rsa. Follow the prompts, and accept the default locations. It is suggested to set a passphrase on the private key to protect it.
You will now have a public key you can use under
ferguson, change to the
admin account like you normally do. If the file ~/.ssh/authoized_keys does not exist, you'll need to create it first. Permissions are important, and SSH won't allow access if they're not correct.
$ mkdir -p ~/.ssh
$ chmod 0700 ~/.ssh
$ touch ~/.ssh/authorized_keys
$ chmod 0600 ~/.ssh/authorized_keys
You will then need to copy your public key into one line in
authorized_keys. If this file already exists, there will likely be other keys. Put your key on its own line.
You should now be able utilize sshfs as the user
admin. In fact, if
admin has a suitable login shell already set (such as
/bin/bash), you will even be able open an ssh session as