Sunteți pe pagina 1din 4

29/7/2017 Remote access SFTP - Raspberry Pi Forums

BLOG DOWNLOADS COMMUNITY HELP FORUMS RESOURCES

Login Register

BOARD INDEX USING THE RASPBERRY PI TROUBLESHOOTING SEARCH NEW POSTS

REMOTE ACCESS SFTP

POST REPLY

14 posts Page 1 of 1

morris123

REMOTE ACCESS SFTP


Sat Aug 20, 2016 1:21 pm
P
Hi everyone,

I set up my raspberry pi to work as a network storage server on my home network. I used Samba for this and i can now access the external
HDD of my Pi using both windows computers and android devices. This is very good (and took me about 2 days of frustration). Now i am
also trying to make it so that i can access the same external HDD using FTP or SFTP or FTPS, doesn't matter which to me. So far i have
been able to connect with Filezilla on windows pc to the External Pi drive using the public IP of my home address and using the forwarded
port 22. However, when i try to connect the same way with my android phone using ES le explorer's option of SFTP connecting, it responds
with "sftp server not found". I have tried installing and conguring other FTP deamons such as VSFTPD and Pure-ftp but have not managed
to get any of these to work even though going trough many many online guides and different conguration settings. I am currently totally
out of ideas and googling results in sites i have visited and tried before so if any of you could help me with a suggestions it would be much
appreciated.

Thanks Alot,

Cheers,

Morris
T

pcmanbob

RE: REMOTE ACCESS SFTP


Sat Aug 20, 2016 10:02 pm
P
Hi.

So you have samba installed which allows you to share les with windows pc's, but samba is not a ftp server if you wish to ftp in to your Pi
from what ever device, you need to be running an FTP server on your Pi.

Please only ask questions in the forum I will not answer questions sent to me directly via PM
Remember we want information.......................no information no help
T

DougieLawson

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 2:51 am
P
Install WinSCP or Filezilla and you can use those for SFTP. Same credentials as you use for your PuTTY sessions.

Microprocessor, Raspberry Pi & Arduino Hacker


Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

https://www.raspberrypi.org/forums/viewtopic.php?t=157733&p=1026877 1/4
29/7/2017 Remote access SFTP - Raspberry Pi Forums

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3


BLOG DOWNLOADS COMMUNITY HELP FORUMS RESOURCES

Please post ALL technical questions on the forum. Do not send private messages.
T

asandford

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 2:59 am
P

DougieLawson wrote:
Install WinSCP or Filezilla and you can use those for SFTP. Same credentials as you use for your PuTTY sessions.
The OP is trying to connect with Android, they've got the windows bit working.

So far i have been able to connect with Filezilla on windows pc to the External Pi drive using the public IP of my home address and using the
forwarded port 22.

However, when i try to connect the same way with my android phone using ES le explorer's option of SFTP connecting, it responds with "sftp
server not found". I have tried installing and conguring other FTP deamons such as VSFTPD and Pure-ftp but have not managed to get any of
these to work even though going trough many many online guides and different conguration settings.
RTFQ
T

morris123

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 9:47 am
P

pcmanbob wrote:
Hi.

So you have samba installed which allows you to share les with windows pc's, but samba is not a ftp server if you wish to ftp in to your Pi from
what ever device, you need to be running an FTP server on your Pi.
Yes i use samba for local network access, and yes i know samba is not an FTP server, but rasbian has an SFTP built in using the SSH
connection trough port 22. Like i said in my post, i can use this to access the drive trough lezilla, it just doesnt work on all devices.

DougieLawson wrote:
Install WinSCP or Filezilla and you can use those for SFTP. Same credentials as you use for your PuTTY sessions.
Yes like i said in my post, i have been doing exactly this to access the External drive from a copmputer, however, since i want remote over the
internet access instead of using the local IP of the Pi i have been using the public IP of my network and have portforwarded port 22 so i can
use lezilla over the internet. But that is not the problem i am having.

asandford wrote:

DougieLawson wrote:
Install WinSCP or Filezilla and you can use those for SFTP. Same credentials as you use for your PuTTY sessions.
The OP is trying to connect with Android, they've got the windows bit working.

So far i have been able to connect with Filezilla on windows pc to the External Pi drive using the public IP of my home address and using the
forwarded port 22.

However, when i try to connect the same way with my android phone using ES le explorer's option of SFTP connecting, it responds with
"sftp server not found". I have tried installing and conguring other FTP deamons such as VSFTPD and Pure-ftp but have not managed to get
any of these to work even though going trough many many online guides and different conguration settings.
RTFQ
Indeed.
T

pcmanbob

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 11:17 am
P

https://www.raspberrypi.org/forums/viewtopic.php?t=157733&p=1026877 2/4
29/7/2017 Remote access SFTP - Raspberry Pi Forums
If you just want the equivalent of winSCP on android have a look at this
BLOG DOWNLOADS COMMUNITY HELP FORUMS RESOURCES
http://android.stackexchange.com/questi ... equivalent

Please only ask questions in the forum I will not answer questions sent to me directly via PM
Remember we want information.......................no information no help
T

morris123

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 11:45 am
P

pcmanbob wrote:
If you just want the equivalent of winSCP on android have a look at this

http://android.stackexchange.com/questi ... equivalent


Hi,
Thanks, but like i stated in my rst post, i have been using ES File Explorer on my android device as a means of logging in trough SFTP
server trough port 22. I have triple checked and i am doing everything correctly, i even went as far as to test it on a friends SFTP server, where
it worked ne. When i do it with my Pi, it says server not found. Which not entirely coincidentally, was my question from the start.
T

pcmanbob

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 12:33 pm
P
OK, so if it works on your friends SFTP server then it would suggest that you need a server running to connect from android, which is what I
suggested originally.

Please only ask questions in the forum I will not answer questions sent to me directly via PM
Remember we want information.......................no information no help
T

DougieLawson

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 12:43 pm
P
Try this Android app https://play.google.com/store/apps/deta ... ndroid.pop it does all sorts of FTP protocols.

Microprocessor, Raspberry Pi & Arduino Hacker


Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson
Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.
T

morris123

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 12:44 pm
P

pcmanbob wrote:
OK, so if it works on your friends SFTP server then it would suggest that you need a server running to connect from android, which is what I
suggested originally.
I do have an SFTP server running, the raspbian default SSH FTP server, which i can connect to over the internet with computers using lezilla
or winscp. I can even use USB tethering of my Android phone to give internet to a laptop and then use that to connected remotely over the
internet to my Pi server. The problem is very specically limited to connecting over the internet using an android device connecting to my Pi. I
can connect to it with an android device using the local network and samba, just not remote using sftp.

https://www.raspberrypi.org/forums/viewtopic.php?t=157733&p=1026877 3/4
29/7/2017 Remote access SFTP - Raspberry Pi Forums

T
BLOG DOWNLOADS COMMUNITY HELP FORUMS RESOURCES
morris123

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 12:45 pm
P

DougieLawson wrote:
Try this Android app https://play.google.com/store/apps/deta ... ndroid.pop it does all sorts of FTP protocols.
Hi, THanks, but like i said in 3 posts so far, i AM using that app. I also tried others to no effect.
T

pcmanbob

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 12:58 pm
P
if you have a read of this, it say's "The SSH File Transfer Protocol is a network protocol that provides le access, le transfer, and le
management functionalities over SSH."
https://www.raspberrypi.org/documentati ... sh/sftp.md

so its a protocol that works over SSH it does not mention a server and there is no mention of connecting to it via android so may be android
will not connect to the protocol and requires a proper ftp server to be running for it to connect

Please only ask questions in the forum I will not answer questions sent to me directly via PM
Remember we want information.......................no information no help
T

morris123

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 1:05 pm
P

pcmanbob wrote:
if you have a read of this, it say's "The SSH File Transfer Protocol is a network protocol that provides le access, le transfer, and le
management functionalities over SSH."
https://www.raspberrypi.org/documentati ... sh/sftp.md

so its a protocol that works over SSH it does not mention a server and there is no mention of connecting to it via android so may be android will
not connect to the protocol and requires a proper ftp server to be running for it to connect
Thanks for the suggestion, and yes this could have been possible, but i can connect to my friends Pi, who is also only using SSH and not
running any proper FTP's. But like i also stated in the rst post, i actually did try FTP deamons like VSFTPD and Pure-FTPD, i did not manage
to get either of these to work in any conguration though.
T

morris123

RE: REMOTE ACCESS SFTP


Sun Aug 21, 2016 1:36 pm
P
Hi guys,
I managed to get it to work. Because other might encounter similar problems in the future, let me put a detailed solution:

put this:

sudo nano /etc/ssh/sshd_cong

then add this to bottom of le:

Subsystem sftp internal-sftp

then put this:

sudo /etc/init.d/ssh restart

and it works!

https://www.raspberrypi.org/forums/viewtopic.php?t=157733&p=1026877 4/4

S-ar putea să vă placă și