Active Topics

 



Notices


Reply
Thread Tools
Posts: 284 | Thanked: 74 times | Joined on Mar 2010 @ Wigan, UK
#1
Hey guys, firstly I'm sure I'm right in that I can mount a drive over ssh but not 100%, so correct me if im wrong.

I can mount the cifs drive on my LAN with no issues. I also use smscon so I have an ssh server setup on the same computer which i can connect to so thats all good.

Now I imagine i should be able to run a command similar to:
Code:
ssh remote@MyIpAddress/f$ /mnt/remote
But I cant find an example like that.....am I completely off with this?

Thanks

Last edited by kaos_king; 2011-11-08 at 16:42. Reason: Added question mark to title to make it clear its a question not a statement
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
Did you install sshfs?
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 284 | Thanked: 74 times | Joined on Mar 2010 @ Wigan, UK
#3
Do you mean on the computer with the share or on the N900?

When I was on my search, i found THIS site which mentioned installing sshfs but it was on the machine that you want to use to connect (so im my case the N900) but i cant find sshfs in the repos?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#4
Which of the repos do you have enabled, with testing and devel enabled i get:
[1|root@Nokia-N900|~]apt-cache policy sshfs
sshfs:
Installed: (none)
Candidate: 2.0-2maemo2
Version table:
2.0-2maemo2 0
500 http://repository.maemo.org fremantle/free Packages
2.0-2maemo1 0
500 http://repository.maemo.org fremantle/free Packages
500 http://repository.maemo.org fremantle/free Packages
1.8maemo1 0
500 http://repository.maemo.org fremantle/free Packages
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 284 | Thanked: 74 times | Joined on Mar 2010 @ Wigan, UK
#5
Well I've done some messing now and I've got closer.

To answer your question though, I have extras, testing, devel and cssu repos but it seems FAM idoesnt want to play. I couldnt find sshfs in there (even after updating the catalogs) but using apt-get installed it fine. As a seperate issue ive uninstalled fam and reinstalled but im sure its not working properly.

Anyway, after installing it I got trying some commands but after entering my password it never did anything so I took a look at the ssh server log and it was denying sftp access. I granted that and now I get:

Code:
/home/user # sshfs remote@itsasecret.dyndns.org:/f$ /home/user/MyDocs/KaosExt
remote@itsasecret.dyndns.org's password: 
remote@itsasecret.dyndns.org:/f$: No such file or directory
So I feel like this is the last step. When I mount the drive locally I use 192.168.2.2/f$ as the remote address and that finds the share so do you know what I would use when its over WAN?

Many thanks for your help up to now btw
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#6
Well i am not running that on my network, but those questions come to my mind:

Did you configure your router's firewall to allow access?
Did you forward the port to the correct IP of the PC?
Did you configure ddclient on the router or on your PC?
Did you allow connections to ssh from outside your local network?
 
Posts: 284 | Thanked: 74 times | Joined on Mar 2010 @ Wigan, UK
#7
What is ddclient?

Apart from that question arn't the other 3 questions simliar? I can access ssh from out my local network, thats fine.

I am hitting the right machine as ssh log states that its accepted my connection and password, it just seems like i've got the folder wrong. In the example on that site i linked to it shows to do ip:/home/user...etc but I just dont know what it would call the root of windows so that I can put the right path to that share.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#8
ddclient is the application to configures your dynamical IP by the provider to sync with dyndns.org in linux.
On windows you might use something else, do you?
Is the folder's name really f$? That will not be a folder the shell accepts.
I can access ssh from out my local network, thats fine.
Though nameserver translation via dyndns.org and the human readable name?
 
Posts: 284 | Thanked: 74 times | Joined on Mar 2010 @ Wigan, UK
#9
Edited as it was a duplicate post.

Last edited by kaos_king; 2011-11-09 at 20:12.
 
Posts: 284 | Thanked: 74 times | Joined on Mar 2010 @ Wigan, UK
#10
Originally Posted by michaaa62 View Post
ddclient is the application to configures your dynamical IP by the provider to sync with dyndns.org in linux.
On windows you might use something else, do you?
Ah right, no the ddclient is on the router and directly updates dyndns.org so no need for any computers to be powered on. The ddclient is definately working as I can vnc to my computer outside of my local network using the human readable name. Now obviously vnc uses a different port to ssh, but yes my ports are forwarded correctly as I can connect to the ssh server outside of my local network. Looking at sshfs it uses the same port as ssh so that should be all good.

Originally Posted by michaaa62 View Post
Is the folder's name really f$? That will not be a folder the shell accepts.
I think this is where my issue is as the computer is a windows one and the drive that is shared out is a usb external drive that has the letter F: assigned to it. I have then shared this out as f$ on that computer. I can change the name of that share if you think thats the issue?
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:04.