Solved

I have ssh but not sshfs

Posted on 2007-11-30
5
991 Views
Last Modified: 2013-12-16
I'm able of accessing my server by ssh but not by sshfs.

Am I missing something in configuration?

I get this error:

$ sudo sshfs -odebug,sshfs_debug,loglevel=debug oleber@myserver.pt:/home/oleber my_path | more
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to myserver.pt [10.134.15.114] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1 Debian-8.sarge.4
debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6p1 Debian-5build1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'myserver.pt' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).
read: Connection reset by peer
0
Comment
Question by:oleber
  • 3
  • 2
5 Comments
 
LVL 10

Author Comment

by:oleber
ID: 20382281
Maybe important, I'm using 'dsa' to do the connection
0
 
LVL 14

Expert Comment

by:arrkerr1024
ID: 20382306
Did it ever prompt  you for your password?  It says that it can do keyboard-interactive, but does it just die or is that maybe just missing from the capture?

When you ssh to the server, does it ask  you for a password, or does it use shared-key authentication?

Have you tried shared-key for this (run "ssh-keygen -t dsa" on the guest, then copy ".ssh/id_dsa" to ".ssh/authorized_keys" on the server)?
0
 
LVL 10

Author Comment

by:oleber
ID: 20382513
I did 'ssh-keygen -t dsa' and send the public to the administrator. He did something, and now I have ssh.

This key have a passphrase

The 'ssh vm-pesquisa.labs.sapo.pt' asks for the passphrase

but 'sudo sshfs oleber@myserver.pt:/home/oleber my_path' don't asks for it.

I have no configuration experience, so please help.

0
 
LVL 14

Accepted Solution

by:
arrkerr1024 earned 125 total points
ID: 20382953
Oh, gotcha.  You're using shared key authentication, so it is looking for your part of the key in your home directory.  The problem is, when you run "sudo", you are running the command as root, not as yourself, so it is looking in root's home directory and not yours.  Just take off the sudo, you shouldn't need to run the command as root.

You may need to "chown oleber mountpoint" if you have a permissions problem, and depending on the distro you may need to add your user account to a group.  But you shouldn't need to be root.
0
 
LVL 10

Author Comment

by:oleber
ID: 20382996
This is the solution of a day of job:
sudo addgroup oleber fuse
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Assess most serious Linux privilege escalation bug 17 149
LINUX CENTOS + APACHE 9 63
linux installs 6 49
Adding more CPU cores to a Linux VM 5 66
The purpose of this article is to demonstrate how we can use conditional statements using Python.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now