Page 1 of 1

[SOLVED] Cannot sshfs from Ubuntu

PostPosted: Oct 16th, '12, 19:02
by PeterTheBike
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?

Re: Cannot sshfs from Ubuntu

PostPosted: Oct 16th, '12, 21:25
by doktor5000
ssh is allowed in the Mageia firewall? Which command do you use to connect to your desktop?

Re: Cannot sshfs from Ubuntu

PostPosted: Oct 17th, '12, 01:03
by PeterTheBike
In MCC I have the firewall set to allow everything to connect, and I use sshfs on my laptop to connect to the desktop.

Re: Cannot sshfs from Ubuntu

PostPosted: Oct 17th, '12, 18:45
by doktor5000
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

Re: Cannot sshfs from Ubuntu

PostPosted: Oct 18th, '12, 13:57
by PeterTheBike
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.

Re: [SOLVED] Cannot sshfs from Ubuntu

PostPosted: Oct 18th, '12, 19:52
by doktor5000
No problem :)