[SOLVED] Cannot sshfs from Ubuntu

[SOLVED] Cannot sshfs from Ubuntu

Postby PeterTheBike » Oct 16th, '12, 19:02

I use sshfs to connect to my desktop from my laptop running Ubuntu.

When my desktop was running Mint 13 I could connect OK.

Since running Mageia 2 on my desktop I keep getting: Connection reset by peer.

I use an IP address when trying to connect using sshfs, but don't know what else to try. Any suggestions please?
Last edited by PeterTheBike on Oct 18th, '12, 13:58, edited 1 time in total.
User avatar
PeterTheBike
 
Posts: 8
Joined: Oct 10th, '12, 22:43

Re: Cannot sshfs from Ubuntu

Postby doktor5000 » Oct 16th, '12, 21:25

ssh is allowed in the Mageia firewall? Which command do you use to connect to your desktop?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot sshfs from Ubuntu

Postby PeterTheBike » Oct 17th, '12, 01:03

In MCC I have the firewall set to allow everything to connect, and I use sshfs on my laptop to connect to the desktop.
User avatar
PeterTheBike
 
Posts: 8
Joined: Oct 10th, '12, 22:43

Re: Cannot sshfs from Ubuntu

Postby doktor5000 » Oct 17th, '12, 18:45

Please show the exact command and the output you get, via copy&paste.

Apart from that, it may be a good idea to debug the ssh connection first, for that you can start
the server side manually in debug mode via
Code: Select all
/usr/sbin/sshd -ddd
and connect to it from the
remote client via
Code: Select all
ssh -vvv ip_of_server
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot sshfs from Ubuntu

Postby PeterTheBike » Oct 18th, '12, 13:57

Thanks, using debug mode on the server and remote client pointed me to problems with keys.

So I used
Code: Select all
ssh-keygen -A
on the server to generate new keys. Then I had to use
Code: Select all
ssh-keygen
with -R on the remote client to remove existing keys for my server.

I can now access my desktop from my laptop normally. Thanks again for your help.
User avatar
PeterTheBike
 
Posts: 8
Joined: Oct 10th, '12, 22:43

Re: [SOLVED] Cannot sshfs from Ubuntu

Postby doktor5000 » Oct 18th, '12, 19:52

No problem :)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest