net-misc/openssh-6.2_p2-r3 works, command line sftp work, usual ssh work net-misc/openssh-6.2_p2-r4 give an error which translate rougly with "Unable to contact the SFTP subsystem. Make sure that SFTP is enabled on the server." KIO_SFTP_LOG_VERBOSITY=1 LANG=C kioclient cat 'sftp://gianni@192.168.77.18/home/gianni/' unnamed app(7590) ClientApp::doIt: Creating ClientApp kioclient(7590)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x1f327c0) kioclient(7590)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-gianni/ksycoca4" kioclient(7590)/kio (Scheduler) KIO::SchedulerPrivate::protoQ: creating ProtoQueue instance for "sftp" kioclient(7590)/kio (Scheduler) KIO::ProtoQueue::ProtoQueue: m_maxConnectionsTotal: 20 m_maxConnectionsPerHost: 5 kioclient(7590) KSharedUiServerProxy::KSharedUiServerProxy: kuiserver registered kioclient(7590)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on "local:/tmp/ksocket-gianni/kioclientSL7590.slave-socket" kioclient(7590)/kio (Slave) KIO::Slave::createSlave: createSlave "sftp" for KUrl("sftp://gianni@192.168.4.18/home/gianni/") kioclient(7590)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on "local:/tmp/ksocket-gianni/kioclientik7590.slave-socket" kioclient(7590)/kio (KIOJob) KIO::SlaveInterface::dispatch: error 133 "Impossibile contattare il sottosistema SFTP. Assicurati che SFTP sia abilitato nel server." kioclient(7590)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("sftp://gianni@192.168.4.18/home/gianni/") kioclient(7590)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0x1f327c0) KIO::Slave(0x1f2ffa0) kioclient(7590)/kio (Slave) KIO::Slave::kill: killing slave pid 7592 ( "sftp://192.168.77.18" ) on the server: Aug 19 11:44:42 monfi sshd[19242]: SSH: Server;Ltype: Version;Remote: 192.168.77.132-53031;Protocol: 2.0;Client: libssh-0.5.2 Aug 19 11:44:42 monfi sshd[19242]: SSH: Server;Ltype: Kex;Remote: 192.168.77.132-53031;Enc: aes256-ctr;MAC: hmac-sha1;Comp: none [preauth] Aug 19 11:44:42 monfi sshd[19242]: SSH: Server;Ltype: Authname;Remote: 192.168.77.132-53031;Name: gianni [preauth] Aug 19 11:44:42 monfi sshd[19242]: Accepted publickey for gianni from 192.168.77.132 port 53031 ssh2 Aug 19 11:44:42 monfi sshd[19242]: pam_unix(sshd:session): session opened for user gianni by (uid=0) Aug 19 11:44:42 monfi sshd[19251]: Received disconnect from 192.168.77.132: 11: Bye Bye Aug 19 11:44:42 monfi sshd[19242]: pam_unix(sshd:session): session closed for user gianni Aug 19 11:44:42 monfi sshd[19259]: SSH: Server;Ltype: Version;Remote: 192.168.77.132-53032;Protocol: 2.0;Client: libssh-0.5.2 Aug 19 11:44:42 monfi sshd[19259]: SSH: Server;Ltype: Kex;Remote: 192.168.77.132-53032;Enc: aes256-ctr;MAC: hmac-sha1;Comp: none [preauth] Aug 19 11:44:42 monfi sshd[19259]: SSH: Server;Ltype: Authname;Remote: 192.168.77.132-53032;Name: gianni [preauth] Aug 19 11:44:42 monfi sshd[19259]: Accepted publickey for gianni from 192.168.77.132 port 53032 ssh2 Aug 19 11:44:42 monfi sshd[19259]: pam_unix(sshd:session): session opened for user gianni by (uid=0) Aug 19 11:44:42 monfi sshd[19268]: Received disconnect from 192.168.77.132: 11: Bye Bye Aug 19 11:44:42 monfi sshd[19259]: pam_unix(sshd:session): session closed for user gianni
Portage 2.2.0 (default/linux/amd64/13.0, gcc-4.8.1, glibc-2.17, 3.10.0-monfi x86_64) ================================================================= System uname: Linux-3.10.0-monfi-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2 KiB Mem: 11209868 total, 362364 free KiB Swap: 16777208 total, 16774668 free Timestamp of tree: Mon, 19 Aug 2013 09:30:01 +0000 ld ld di GNU (Linux/GNU Binutils) 2.23.52.0.2.20130423 distcc 3.1 x86_64-pc-linux-gnu [enabled] ccache version 3.1.9 [disabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.5, 3.3.2-r1 dev-util/ccache: 3.1.9 dev-util/cmake: 2.8.11.1 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.10.3 sys-devel/binutils: 2.23.52.0.2 sys-devel/gcc: 4.8.1 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo qt x11 kde mysql vivovl digikam ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/conf.d /etc/init.d /usr/share/config /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=corei7-avx -pipe -frecord-gcc-switches -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx -fvisibility-inlines-hidden -fabi-version=6 -ffor-scope -fstrict-enums -fuse-cxa-atexit" DISTDIR="/g/distfiles" EMERGE_DEFAULT_OPTS="--ask-enter-invalid --quiet-build=y --buildpkg-exclude=x11-drivers/nvidia-drivers --buildpkg-exclude=sys-power/bbswitch --buildpkg-exclude=app-emulation/virtualbox-modules --buildpkg-exclude=sys-fs/aufs3" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs clean-logs compress-build-logs compressdebug config-protect-if-modified distcc distlocks ebuild-locks fail-clean fixlafiles installsources merge-sync metadata-transfer news noinfo notitles parallel-fetch parallel-install sandbox sfperms skiprocheck splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://archive.mmu.edu.my/gentoo rsync://gentoo.bloodhost.ru/gentoo-distfiles ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/ rsync://mirror.neolabs.kz/gentoo http://ftp.gentoo.bg/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/" INSTALL_MASK=" /usr/lib64/elektra/*.la /usr/lib64/libelektra*.la /usr/lib64/libo{{,sp}grove,style}.la /lib/udev/rules.d/45-Argyll.rules /usr/lib64/terminfo/[0-9] /usr/src/debug /usr/lib64/debug/ " LANG="it_IT.UTF-8" LC_ALL="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--build-id" MAKEOPTS="-j3" PKGDIR="/g/binhost/" PORTAGE_COMPRESS_FLAGS="-3" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/g/portage" PORTDIR_OVERLAY="/g/ovl/qt /g/ovl/x11 /g/ovl/kde /g/ovl/mysql /g/ovl/tmp /g/ovl/digikam" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac accessibility acl acpi aiglx aim alsa amd64 artswrappersuid audiofile avahi bash-completion berkdb bidi bzip2 cairo cdda cddb cdr cjk cli consolekit cpudetection cracklib crypt cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread dvi efi egl fame fat ffmpeg firefox flac foomatic-db fortran freetype gcj gdbm gif gimpprint glamor gles2 gmp gnutls gphoto2 gsm gtk hfs iconv icq ieee1394 imap inotify ipod ipv6 irc irda jabber jack jfs joystick kdeenablefinal kdehiddenvisibility kerberos lame lcd libnotify live lm_sensors lzo mail matroska mjpeg mmx modules mozdevelop mp3 mp3rtp msn mudflap multilib musepack musicbrainz ncurses network nls nptl nsplugin ntfs ogg openal opencl opengl openmp pam pcmcia pcre pda perl png policykit ppds pulseaudio python qt3support qt4 r600-llvm-compiler rar rdesktop readline real reiserfs rss scanner sdl session slp smpeg speex sse sse2 ssl startup-notification stream svg sysfs tcpd theora tiff udev unicode usb v4l v4l2 visualization wifi win32codecs wmf x264 xattr xcb xfs xine xinerama xpm xprint xulrunner xvid xvmc yahoo zeroconf zlib" ABI_X86="64" ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="krita braindump flow stage words sheets" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps cifs dmsquash-live livenet mdraid nfs ssh-client syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="it en en_US" LIRC_DEVICES="audio audio_alsa serial pctv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 pypy2_0" QEMU_SOFTMMU_TARGETS="arm cris m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc sparc64 x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev vesa r300 r600 intel modesetting radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7 3.3 2.7-pypy-2.0" Unset: CPPFLAGS, CTARGET, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_RSYNC_EXTRA_OPTS
[binary U ] net-misc/openssh-6.2_p2-r4 [6.2_p2-r3] USE="X hpn kerberos pam tcpd -X509 -bindist -ldap -ldns -libedit (-selinux) -skey -static" 0 kB
With -r4, does sftp still work on the command line?
I also have this problem, and can test potential fixes. openssh-6.2_p2-r4 (on the server) does not work with the sftp kioslave (on the client). Downgrading the server to openssh-6.2_p2-r3 results in a working connection. Running sshd in debug mode on the server shows a sudden client disconnect after successful authentication: # /usr/sbin/sshd -Dd debug1: Config token is passwordauthentication debug1: Config token is usepam debug1: Config token is x11forwarding debug1: Config token is printmotd debug1: Config token is printlastlog debug1: Config token is useprivilegeseparation debug1: Config token is subsystem debug1: Config token is acceptenv debug1: HPN Buffer Size: 87380 debug1: sshd version OpenSSH_6.2, OpenSSL 1.0.1e 11 Feb 2013 debug1: read PEM private key done: type RSA debug1: private host key: #0 type 1 RSA debug1: read PEM private key done: type DSA debug1: private host key: #1 type 2 DSA debug1: read PEM private key done: type ECDSA debug1: private host key: #2 type 3 ECDSA debug1: rexec_argv[0]='/usr/sbin/sshd' debug1: rexec_argv[1]='-Dd' Set /proc/self/oom_score_adj from 0 to -1000 debug1: Bind to port 22 on 0.0.0.0. debug1: Server TCP RWIN socket size: 87380 debug1: HPN Buffer Size: 87380 Server listening on 0.0.0.0 port 22. debug1: Bind to port 22 on ::. debug1: Server TCP RWIN socket size: 87380 debug1: HPN Buffer Size: 87380 Server listening on :: port 22. debug1: Server will not fork when running in debugging mode. debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8 debug1: inetd sockets after dupping: 3, 3 Connection from ::1 port 53255 debug1: HPN Disabled: 0, HPN Buffer Size: 87380 debug1: Client protocol version 2.0; client software version libssh-0.5.5 SSH: Server;Ltype: Version;Remote: ::1-53255;Protocol: 2.0;Client: libssh-0.5.5 debug1: no match: libssh-0.5.5 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.2p2-hpn14v1 debug1: permanently_set_uid: 22/22 [preauth] debug1: MYFLAG IS 1 [preauth] debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256 [preauth] debug1: SSH2_MSG_KEXINIT sent [preauth] debug1: SSH2_MSG_KEXINIT received [preauth] debug1: AUTH STATE IS 0 [preauth] debug1: REQUESTED ENC.NAME is 'aes256-ctr' [preauth] debug1: kex: client->server aes256-ctr hmac-sha1 none [preauth] SSH: Server;Ltype: Kex;Remote: ::1-53255;Enc: aes256-ctr;MAC: hmac-sha1;Comp: none [preauth] debug1: REQUESTED ENC.NAME is 'aes256-ctr' [preauth] debug1: kex: server->client aes256-ctr hmac-sha1 none [preauth] debug1: expecting SSH2_MSG_KEXDH_INIT [preauth] debug1: SSH2_MSG_NEWKEYS sent [preauth] debug1: expecting SSH2_MSG_NEWKEYS [preauth] debug1: SSH2_MSG_NEWKEYS received [preauth] debug1: KEX done [preauth] debug1: userauth-request for user root service ssh-connection method none [preauth] SSH: Server;Ltype: Authname;Remote: ::1-53255;Name: root [preauth] debug1: attempt 0 failures 0 [preauth] debug1: Config token is passwordauthentication debug1: Config token is usepam debug1: Config token is x11forwarding debug1: Config token is printmotd debug1: Config token is printlastlog debug1: Config token is useprivilegeseparation debug1: Config token is subsystem debug1: Config token is acceptenv debug1: PAM: initializing for "root" debug1: PAM: setting PAM_RHOST to "corvus.turmel.org" debug1: PAM: setting PAM_TTY to "ssh" debug1: userauth-request for user root service ssh-connection method publickey [preauth] debug1: attempt 1 failures 0 [preauth] debug1: test whether pkalg/pkblob are acceptable [preauth] debug1: temporarily_use_uid: 0/0 (e=0/0) debug1: trying public key file /root/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug1: matching key found: file /root/.ssh/authorized_keys, line 8 Found matching RSA key: 61:fd:15:f8:cf:09:a2:15:bc:b8:6f:12:fd:f5:06:56 debug1: restore_uid: 0/0 Postponed publickey for root from ::1 port 53255 ssh2 [preauth] debug1: userauth-request for user root service ssh-connection method publickey [preauth] debug1: attempt 2 failures 0 [preauth] debug1: temporarily_use_uid: 0/0 (e=0/0) debug1: trying public key file /root/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug1: matching key found: file /root/.ssh/authorized_keys, line 8 Found matching RSA key: 61:fd:15:f8:cf:09:a2:15:bc:b8:6f:12:fd:f5:06:56 debug1: restore_uid: 0/0 debug1: ssh_rsa_verify: signature correct debug1: do_pam_account: called Accepted publickey for root from ::1 port 53255 ssh2 debug1: monitor_child_preauth: root has been authenticated by privileged process debug1: monitor_read_log: child log fd closed debug1: PAM: establishing credentials debug1: Single to Multithreaded CTR cipher swap - server request debug1: Entering interactive session for SSH2. debug1: server_init_dispatch_20 debug1: need rekeying debug1: SSH2_MSG_KEXINIT sent debug1: server_input_channel_open: ctype session rchan 43 win 64000 max 32768 debug1: input_session_request debug1: channel 0: new [server-session] debug1: session_new: session 0 debug1: session_open: channel 0 debug1: session_open: session 0: link with channel 0 debug1: server_input_channel_open: confirm session debug1: enqueue packet: 91 Received disconnect from ::1: 11: Bye Bye debug1: do_cleanup debug1: PAM: cleanup debug1: PAM: closing session debug1: PAM: deleting credentials
I have similar problem with openssh-6.2_p2-r4
This version works fine on my x86 & amd64 machines, but I have an armv5te (fixed-point) embedded device that it refuses to allow ssh access saying something like PACKET CORRUPTED. Sorry for the lack of detail, but quite the dog & pony show to get my device back on line after that, I've looked in the logs and there is nothing to give you. To make a long story short I can chroot in and downgrade to the -p3 version and all is fine again. An admittedly lame "me too"
It seems that the hpn USE-Flag of net-misc/openssh-6.2_p2-r4 is responsible for this behavior. Emerging net-misc/openssh-6.2_p2-r4 without hpn results in a working sftp-connection (via dolphin). Setting "HPNDisabled yes" in /etc/ssh/sshd_config doesn't work.
In bug #482548, there is some suggestion that there are some issues with hpn and libssh, which is fixed in a later version. When bug #488486 is resolved, we can test again.
Nothing new here. After emerging net-libs/libssh-0.6.0_rc1 the problem persists. It works with net-misc/openssh -hpn, but fails with net-misc/openssh +hpn.
Does this still occur with openssh-6.3* and the new hpn patch?
Should be fixed, possibly since the ECDSA was made working - =kde-base/kdesdk-kioslaves-4.11.3 - =net-misc/openssh-6.3_p1-r1
It does not work with net-misc/openssh-6.4_p1-r1 +hpn and net-libs/libssh-0.6.0_rc1.
*** Bug 497398 has been marked as a duplicate of this bug. ***
(In reply to Per Pomsel from comment #12) > It does not work with net-misc/openssh-6.4_p1-r1 +hpn and > net-libs/libssh-0.6.0_rc1. Indeed this combination doesn't work. But the error message is slightly different: kioclient(26719)/kio (KIOJob) KIO::SlaveInterface::dispatch: error 109 "sftp://mythtv@cube/home/" While net-libs/libssh-0.5.5 causes this message: kioclient(8030)/kio (KIOJob) KIO::SlaveInterface::dispatch: error 133 "Das SFTP-Subsystem kann nicht angefordert werden. Bitte stellen Sie sicher, das SFTP auf dem Zielserver aktiviert ist." Note the different error number.
Could someone please test with latest openssh, libssh, and kdebase-kioslaves to see if this is still an issue?
(In reply to Michael Palimaka (kensington) from comment #15) > Could someone please test with latest openssh, libssh, and kdebase-kioslaves > to see if this is still an issue? see comment #11
(In reply to Francesco Riosa from comment #16) > (In reply to Michael Palimaka (kensington) from comment #15) > > Could someone please test with latest openssh, libssh, and kdebase-kioslaves > > to see if this is still an issue? > > see comment #11 please disregard