2014年4月29日 星期二

[sshfs][sftp] Configure sshfs on Embedded


Question :

sshfs root@192.168.100.1:/ /home/happy/folder/ can't connect.


Solution :


1. Debug by using sftp at the first.

sftp -vvv root@192.168.100.1


debug1: Exit status 141

Connection closed


2. Go to Embedded Board, then edit sshd_config.

Change

Subsystem     sftp    /tmp/BIN/libexec/sftp-server   -->  Subsystem sftp internal-sftp

3. Embedded Board :

Start sshd

/tmp/BIN/sbin/sshd -f /tmp/BIN/etc/sshd_config -h /tmp/BIN/bin/ssh_host_rsa_key -D


4. Go to PC, then execute sshfs root@192.168.100.1:/ /home/happy/folder/ successfully.


Reference :


Related Posts:

0 意見:

張貼留言