You are not logged in.

#1 2015-02-19 20:02:32

dbacc
Member
Registered: 2014-09-25
Posts: 119

[Solved] sshfs connection: Nothing happens after password prompt

Hey,

I'm trying to mount a remote folder via ssh.

User on the server side is different from local user.

After entering sshfs -C userserver@server:serverfolder clientfolder I get the password promptfor userserver. Then nothing more happens.

I've read the troubleshooting section of sshfs and , of course, shh connection is working.

But what is going wrong here?

Last edited by dbacc (2015-03-08 19:17:40)

Offline

#2 2015-02-19 20:15:44

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved] sshfs connection: Nothing happens after password prompt

What do you mean 'nothing happens'? A successful mount will not result in any output.

testing@caddywhompus:~$ sshfs alphaniner@crapshoot:/tmp /tmp/test            
Password for alphaniner@crapshoot:
testing@caddywhompus:~$ mount |grep test
alphaniner@crapshoot:/tmp on /tmp/test type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2015-02-19 20:16:06

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [Solved] sshfs connection: Nothing happens after password prompt

run the command with the verbose option.

EDIT: Actually the answer above me is better. Are you returned to a shell prompt with no output? Or does the command just hang, without ever actually returning?

Last edited by cris9288 (2015-02-19 20:18:13)

Offline

#4 2015-02-19 20:32:45

dbacc
Member
Registered: 2014-09-25
Posts: 119

Re: [Solved] sshfs connection: Nothing happens after password prompt

Oh, sry. I mean that the command is never actually returning. And as far as I can see sshfs has no verbose option.

Offline

#5 2015-02-19 20:56:49

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved] sshfs connection: Nothing happens after password prompt

Hmm, you can try '-o sshfs_debug' and maybe '-d' for fuse debug. Note, with -d the command did not return me to a prompt, but the mount did work.

You can also specify ssh options:

$ sshfs -h
...
    -o SSHOPT=VAL          ssh options (see man ssh_config)

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#6 2015-02-19 21:17:44

dbacc
Member
Registered: 2014-09-25
Posts: 119

Re: [Solved] sshfs connection: Nothing happens after password prompt

hmm, tried it with these options and LOGLEVEL=DEBUG3.

Now the output after the password prompt is:

Password: 
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 0
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to client.
debug2: fd 4 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x08
debug2: client_session2_setup: id 0
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: subsystem request accepted on channel 0
debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1

I don't see the problem;)

Offline

#7 2015-02-19 21:37:20

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved] sshfs connection: Nothing happens after password prompt

For comparison, here's my output:

$ sshfs -d -o sshfs_debug -o LOGLEVEG=DEBUG3 service@clusterfrak:/tmp /tmp/test
SSHFS version 2.5
FUSE library version: 2.9.3
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-oLOGLEVEL=DEBUG3> <-2> <service@clusterfrak> <-s> <sftp>
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to clusterfrak [199.200.1.140] port 22.
debug1: Connection established.
debug1: identity file /home/testing/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/testing/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/testing/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/testing/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/testing/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/testing/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/testing/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/testing/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7
debug1: match: OpenSSH_6.7 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "clusterfrak" from file "/home/testing/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:3
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-ed25519,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_setup: setup umac-64-etm@openssh.com
debug1: kex: server->client aes128-ctr umac-64-etm@openssh.com none
debug2: mac_setup: setup umac-64-etm@openssh.com
debug1: kex: client->server aes128-ctr umac-64-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 1b:38:0e:15:39:c6:93:37:12:fb:62:32:c9:ce:cb:b1
debug3: load_hostkeys: loading entries for host "clusterfrak" from file "/home/testing/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:3
debug3: load_hostkeys: loaded 1 keys
debug3: load_hostkeys: loading entries for host "199.200.1.140" from file "/home/testing/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:2
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'clusterfrak' is known and matches the ECDSA host key.
debug1: Found key in /home/testing/.ssh/known_hosts:3
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/testing/.ssh/id_rsa (0x7fbb6e500e10),
debug2: key: /home/testing/.ssh/id_dsa ((nil)),
debug2: key: /home/testing/.ssh/id_ecdsa ((nil)),
debug2: key: /home/testing/.ssh/id_ed25519 ((nil)),
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/testing/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/testing/.ssh/id_dsa
debug3: no such identity: /home/testing/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/testing/.ssh/id_ecdsa
debug3: no such identity: /home/testing/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/testing/.ssh/id_ed25519
debug3: no such identity: /home/testing/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
Authenticated to clusterfrak ([199.200.1.140]:22).
debug2: fd 4 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug2: fd 6 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x08
debug2: client_session2_setup: id 0
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: subsystem request accepted on channel 0
Server version: 3
Extension: posix-rename@openssh.com <1>
Extension: statvfs@openssh.com <2>
Extension: fstatvfs@openssh.com <2>
Extension: hardlink@openssh.com <1>
Extension: fsync@openssh.com <1>
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.23
flags=0x0003f7fb
max_readahead=0x00020000
   INIT: 7.19
   flags=0x00000011
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 1, success, outsize: 40

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#8 2015-02-19 21:46:37

dbacc
Member
Registered: 2014-09-25
Posts: 119

Re: [Solved] sshfs connection: Nothing happens after password prompt

okay, obviously the part

Server version: 3
Extension: posix-rename@openssh.com <1>
Extension: statvfs@openssh.com <2>
Extension: fstatvfs@openssh.com <2>
Extension: hardlink@openssh.com <1>
Extension: fsync@openssh.com <1>
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.23
flags=0x0003f7fb
max_readahead=0x00020000
   INIT: 7.19
   flags=0x00000011
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 1, success, outsize: 40

is missing. You know ehere this part is generated?

Offline

#9 2015-02-19 21:58:35

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved] sshfs connection: Nothing happens after password prompt

Unfortunately, everything after the p/w prompt (just after "debug1: Next authentication method: password") is pretty much 'instantaneous'.

For reference, both machines are running Arch and are up to date.

ssh_config of client:

StrictHostKeyChecking no

sshd_config of server:

AuthorizedKeysFile      .ssh/authorized_keys
ChallengeResponseAuthentication no
UsePAM yes
PrintMotd no # pam does that
UsePrivilegeSeparation sandbox          # Default for new installations.
Subsystem       sftp    /usr/lib/ssh/sftp-server

Last edited by alphaniner (2015-02-19 22:06:45)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#10 2015-03-08 11:09:59

dbacc
Member
Registered: 2014-09-25
Posts: 119

Re: [Solved] sshfs connection: Nothing happens after password prompt

my config looks pretty much the same. Connection works with other clients using e.g. OpenSuse. So this has to be a client issue. However, do you have any more ideas?

Offline

#11 2015-03-08 17:55:20

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [Solved] sshfs connection: Nothing happens after password prompt

hm...what is the default shell of the user on the server? Check the .zshrc/.bashrc to see if there might be anything there that is causing that specific login to hang - if anything, back it up and start with a blank file. Are there other users on the server you can test with? Can you create a new user and try mounting the remote folder?

Another idea that comes to mind is the folder that you are trying to mount to on the client - can you try another folder? If you are mounting to /tmp/test, try /mnt/tmp/test.

Offline

#12 2015-03-08 19:14:00

dbacc
Member
Registered: 2014-09-25
Posts: 119

Re: [Solved] sshfs connection: Nothing happens after password prompt

thats it! Used a fresh .bashrc and now its working. Thanks a lot!

Last edited by dbacc (2015-03-08 19:17:05)

Offline

Board footer

Powered by FluxBB