Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: How to connect connet/mount with SFTP and private key

  1. #11
    Join Date
    Feb 2009
    Beans
    143

    Re: How to connect connet/mount with SFTP and private key

    That command should read
    Code:
     ssh -i /path/to/your/privatekey your_username@yourdomain.com
    To use sshfs you need to install the package, the command to install it is
    Code:
    sudo apt-get install sshfs
    then to mount a remote host as the directory /mnt (your mount point) (you can use any directory you like even ones with stuff in - it will not write over the top of them the contents will just be invisible until you umount). Note the -o ssh_command... option should not be necessary if you have loaded your key using ssh-add /path/to/your/privatekey .
    Code:
    sshfs username@remotehost.com:/folder/in/remotehost /mnt -o ssh_command='ssh -i /path/to/your/privatekey'
    to unmount where /mnt is your mount point:
    Code:
    fusermount -u /mnt
    I prefer to use a mount point in my home directory. e.g. /home/username/mnt/ and use that as my mountpoint instead
    Last edited by delcypher; November 13th, 2009 at 08:29 PM.

  2. #12
    Join Date
    Sep 2008
    Beans
    69

    Re: How to connect connet/mount with SFTP and private key

    Quote Originally Posted by delcypher View Post
    Code:
    sshfs username@remotehost.com:/folder/in/remotehost /mnt -o ssh_command='ssh -i /path/to/your/privatekey'
    Again, thank you

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •