Automatic upload failed: request failed

Hello, 

I am working with Pycharm 2019.2.

My project is configured to upload all the files in a distant server (ubuntu 14.04) using SFTP through the "Deployment" system provided by Pycharm. 
You can configure it here : settings/build, execution, deployment/deployment/

Everything run fine, but it stop working when I change the password of the server. When I am using the "Test Connection" button, The following error is shown : "Connection to '5.XXX.XX.XX' failed. Request failed'

The logs give me the following output : 

-----------------------------------------------------------
2019-10-15 15:26:42,236 [ 51155] DEBUG - t.connections.RemoteConnection - Opening connection to sftp://5.XXX.XX.XX:22/ in @67a2eedb

2019-10-15 15:26:42,285 [ 51204] DEBUG - ntellij.ssh.impl.SshConnection - Failed to create SSH channel using existing SSH sessions, creating new SSH session
2019-10-15 15:26:42,286 [ 51205] DEBUG - ntellij.ssh.impl.SshConnection - Establishing new SSH session to root@5.XXX.XX.XX:22
2019-10-15 15:26:42,488 [ 51407] INFO - port.random.BouncyCastleRandom - Generating random seed from SecureRandom.
2019-10-15 15:26:42,996 [ 51915] INFO - z.sshj.transport.TransportImpl - Client identity string: SSH-2.0-SSHJ_0.27.0
2019-10-15 15:26:43,011 [ 51930] INFO - z.sshj.transport.TransportImpl - Server identity string: SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8
2019-10-15 15:26:43,228 [ 52147] INFO - om.intellij.ssh.impl.sshj.sshj - Authentication log: SSHJ connection to root@5.XXX.XX.XX:22
* With preferred authentications: publickey,keyboard-interactive,password
* With signature factories: ssh-rsa, ssh-dss, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-ed25519
* With keep alive interval 300 seconds
* With keep alive count max 1000
* With OpenSshLikeHostKeyVerifier(knownHostsFile=[C:\Users\minis\.ssh\known_hosts], strictHostKeyChecking=ASK)
* With predefined password
* With authentications: password by net.schmizz.sshj.userauth.method.AuthPassword, keyboard-interactive by net.schmizz.sshj.userauth.method.AuthKeyboardInteractive
* With connect timeout 10000
* Connected
=> none by net.schmizz.sshj.userauth.method.AuthNone@1416a9c3 (failure, new allowed auth methods: publickey, password, keyboard-interactive)
=> keyboard-interactive by net.schmizz.sshj.userauth.method.AuthKeyboardInteractive@1dc28955 (failure, new allowed auth methods: publickey, password, keyboard-interactive)
=> password by net.schmizz.sshj.userauth.method.AuthPassword@7cf8460a (success)
2019-10-15 15:26:43,234 [ 52153] DEBUG - ntellij.ssh.impl.SshConnection - SSH session @5801a707 established to root@5.XXX.XX.XX:22
2019-10-15 15:26:43,234 [ 52153] DEBUG - ellij.ssh.SshConnectionService - Creating sftp channel within SshjSshConnection(root@<crc32=zkoza2>)@5801a707
2019-10-15 15:26:43,262 [ 52181] INFO - .channel.direct.SessionChannel - Will request `sftp` subsystem
2019-10-15 15:26:43,275 [ 52194] WARN - net.schmizz.concurrent.Promise - <<chan#0 / chanreq for subsystem>> woke to: net.schmizz.sshj.connection.ConnectionException: Request failed
2019-10-15 15:26:43,276 [ 52195] DEBUG - ellij.ssh.SshConnectionService - Creating sftp channel within SshjSshConnection(root@<crc32=zkoza2>)@5801a707
2019-10-15 15:26:43,289 [ 52208] INFO - .channel.direct.SessionChannel - Will request `sftp` subsystem
2019-10-15 15:26:43,301 [ 52220] WARN - net.schmizz.concurrent.Promise - <<chan#1 / chanreq for subsystem>> woke to: net.schmizz.sshj.connection.ConnectionException: Request failed
2019-10-15 15:26:43,303 [ 52222] WARN - t.connections.RemoteConnection - Retrying connecting to sftp://5.XXX.XX.XX:22/ in @67a2eedb: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not resolve file "sftp://5.XXX.XX.XX/".
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:346)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:315)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at com.jetbrains.plugins.webDeployment.connections.SftpFileProviderProxy.findFile(SftpFileProviderProxy.java:74)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:726)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:648)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:257)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.intellij.ssh.SshTransportException: Request failed
at com.intellij.ssh.impl.sshj.SshjSshConnection.openChannel(SshjSshConnection.kt:52)
at com.intellij.ssh.impl.SshConnection.openChannel(SshConnection.kt:67)
at com.intellij.ssh.SshConnectionService.sftp(SshConnectionService.kt:171)
at com.intellij.ssh.SshConnectionService$failSafeSftp$1.invoke(SshConnectionService.kt:182)
at com.intellij.ssh.SshConnectionService$failSafeSftp$1.invoke(SshConnectionService.kt:30)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel.supplyUnderlyingFileObject(FailSafeSftpChannel.kt:134)
at com.intellij.ssh.impl.channels.FailSafeRemoteFileObject.exists(FailSafeRemoteFileObject.kt:250)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileSystem.getFileType(PlatformSftpFileSystem.java:102)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.makeFileName(PlatformSftpFileObject.java:56)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.<init>(PlatformSftpFileObject.java:47)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.<init>(PlatformSftpFileObject.java:40)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileSystem.createFile(PlatformSftpFileSystem.java:46)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:342)
... 13 more
Caused by: net.schmizz.sshj.connection.ConnectionException: Request failed
at net.schmizz.sshj.connection.channel.AbstractChannel.gotResponse(AbstractChannel.java:405)
at net.schmizz.sshj.connection.channel.AbstractChannel.handle(AbstractChannel.java:192)
at net.schmizz.sshj.connection.ConnectionImpl.handle(ConnectionImpl.java:130)
at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:500)
at net.schmizz.sshj.transport.Decoder.decodeMte(Decoder.java:159)
at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:79)
at net.schmizz.sshj.transport.Decoder.received(Decoder.java:231)
at net.schmizz.sshj.transport.Reader.run(Reader.java:59)
2019-10-15 15:26:43,306 [ 52225] WARN - s.webDeployment.RemoteHostTask - Could not resolve file "sftp://5.XXX.XX.XX/".
org.apache.commons.vfs2.FileSystemException: Could not resolve file "sftp://5.196.85.30/".
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:346)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:315)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at com.jetbrains.plugins.webDeployment.connections.SftpFileProviderProxy.findFile(SftpFileProviderProxy.java:74)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:726)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:648)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:257)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.intellij.ssh.SshTransportException: Request failed
at com.intellij.ssh.impl.sshj.SshjSshConnection.openChannel(SshjSshConnection.kt:52)
at com.intellij.ssh.impl.SshConnection.openChannel(SshConnection.kt:67)
at com.intellij.ssh.SshConnectionService.sftp(SshConnectionService.kt:171)
at com.intellij.ssh.SshConnectionService$failSafeSftp$1.invoke(SshConnectionService.kt:182)
at com.intellij.ssh.SshConnectionService$failSafeSftp$1.invoke(SshConnectionService.kt:30)
at com.intellij.ssh.impl.channels.FailSafeSftpChannel.supplyUnderlyingFileObject(FailSafeSftpChannel.kt:134)
at com.intellij.ssh.impl.channels.FailSafeRemoteFileObject.exists(FailSafeRemoteFileObject.kt:250)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileSystem.getFileType(PlatformSftpFileSystem.java:102)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.makeFileName(PlatformSftpFileObject.java:56)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.<init>(PlatformSftpFileObject.java:47)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileObject.<init>(PlatformSftpFileObject.java:40)
at com.jetbrains.plugins.webDeployment.connections.platform.PlatformSftpFileSystem.createFile(PlatformSftpFileSystem.java:46)
at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:342)
... 13 more
Caused by: net.schmizz.sshj.connection.ConnectionException: Request failed
at net.schmizz.sshj.connection.channel.AbstractChannel.gotResponse(AbstractChannel.java:405)
at net.schmizz.sshj.connection.channel.AbstractChannel.handle(AbstractChannel.java:192)
at net.schmizz.sshj.connection.ConnectionImpl.handle(ConnectionImpl.java:130)
at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:500)
at net.schmizz.sshj.transport.Decoder.decodeMte(Decoder.java:159)
at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:79)
at net.schmizz.sshj.transport.Decoder.received(Decoder.java:231)
at net.schmizz.sshj.transport.Reader.run(Reader.java:59)
-----------------------------------------------------------

It appears that it's not working. 

I try to use SFTP with Filezilla and it's working fine ! 
Also, connecting in SSH using Putty works. 

My SSH configuration look like this (from /etc/ssh/ssh_config) : 

--------------------------------
PasswordAuthentication no
Port 22
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentification yes
GSSAPIDelegateCredentials no
UseRoaming no
PubKeyAuthentication no
--------------------------------

Does anyone know what I am missing here ?... 

Thank you for your help !

0
7 comments

Hello, 

Could you please:

1. save the deployment settings (disregard the failed connection test for now), and try in PyCharm Tools > Start SSH session -  is it successful? 

2. add #com.intellij.ssh and #com.jetbrains.plugins.webDeployment to Help | Debug Log Settings, restart IDEA, try to connect again and then upload logs folder zipped from Help | Compress Logs and Show in… to the FTP: https://uploads.services.jetbrains.com/   provide me with a folder name. 

 

 

0
Avatar
Permanently deleted user

Hi, 
Thanks for your feed-back. 

1. Tools > Start SSH session works perfectly fine. 

2. I upload a .zip named : pycharm-logs-20191018-101244-slh.zip. 

I will wait for your advices. Thanks again. 

0

Hello Sacha, 

Thank you for the provided logs. 

There is an existing issue described https://youtrack.jetbrains.com/issue/PY-37633   and it seems like you have a similar one, it will be very helpful if you could perform the troubleshooting steps provided in https://youtrack.jetbrains.com/issue/PY-37633#focus=streamItem-27-3686198.0-0   and attach gathered logs to the ticket on YouTrack. 

 

 

 

0
Avatar
Permanently deleted user

Hi, 

Thank you for your advice. I launch SSH on another port just like suggested and you will found below the logs captured : 

debug2: load_server_config: filename /etc/ssh/sshd_config
debug2: load_server_config: done config len = 9
debug2: parse_server_config: config /etc/ssh/sshd_config len 9
debug1: sshd version OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type ECDSA
debug1: private host key: #2 type 3 ECDSA
debug1: private host key: #3 type 4 ED25519
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-D'
debug1: rexec_argv[2]='-e'
debug1: rexec_argv[3]='-o'
debug1: rexec_argv[4]='LogLevel=DEBUG2'
debug1: rexec_argv[5]='-o'
debug1: rexec_argv[6]='Port=12345'
Set /proc/self/oom_score_adj from 0 to -1000
debug2: fd 3 setting O_NONBLOCK
debug1: Bind to port 78 on 0.0.0.0.
Server listening on 0.0.0.0 port 78.
debug2: fd 4 setting O_NONBLOCK
debug1: Bind to port 78 on ::.
Server listening on :: port 78.
debug2: fd 5 setting O_NONBLOCK
debug1: Bind to port 12345 on 0.0.0.0.
Server listening on 0.0.0.0 port 12345.
debug2: fd 6 setting O_NONBLOCK
debug1: Bind to port 12345 on ::.
Server listening on :: port 12345.
debug1: Forked child 18206.
Set /proc/self/oom_score_adj to 0
debug1: rexec start in 7 out 7 newsock 7 pipe 9 sock 10
debug2: parse_server_config: config rexec len 9
debug1: sshd version OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type ECDSA
debug1: private host key: #2 type 3 ECDSA
debug1: private host key: #3 type 4 ED25519
debug1: inetd sockets after dupping: 3, 3
Connection from 188.65.168.85 port 56172 on 5.196.85.30 port 12345
debug1: Client protocol version 2.0; client software version SSHJ_0.27.0
debug1: no match: SSHJ_0.27.0
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8
debug2: fd 3 setting O_NONBLOCK
debug2: Network child is on pid 18207
debug1: permanently_set_uid: 104/65534 [preauth]
debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 [preauth]
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se [preauth]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se [preauth]
debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 [preauth]
debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 [preauth]
debug2: kex_parse_kexinit: none,zlib@openssh.com [preauth]
debug2: kex_parse_kexinit: none,zlib@openssh.com [preauth]
debug2: kex_parse_kexinit: [preauth]
debug2: kex_parse_kexinit: [preauth]
debug2: kex_parse_kexinit: first_kex_follows 0 [preauth]
debug2: kex_parse_kexinit: reserved 0 [preauth]
debug2: kex_parse_kexinit: curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group14-sha256,diffie-hellman-group15-sha512,diffie-hellman-group16-sha512,diffie-hellman-group17-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256@ssh.com,diffie-hellman-group15-sha256,diffie-hellman-group15-sha256@ssh.com,diffie-hellman-group15-sha384@ssh.com,diffie-hellman-group16-sha256,diffie-hellman-group16-sha384@ssh.com,diffie-hellman-group16-sha512@ssh.com,diffie-hellman-group18-sha512@ssh.com [preauth]
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519 [preauth]
debug2: kex_parse_kexinit: aes128-cbc,aes128-ctr,aes192-cbc,aes192-ctr,aes256-cbc,aes256-ctr,blowfish-cbc,blowfish-ctr,cast128-cbc,cast128-ctr,idea-cbc,idea-ctr,serpent128-cbc,serpent128-ctr,serpent192-cbc,serpent192-ctr,serpent256-cbc,serpent256-ctr,3des-cbc,3des-ctr,twofish128-cbc,twofish128-ctr,twofish192-cbc,twofish192-ctr,twofish256-cbc,twofish256-ctr,twofish-cbc,arcfour,arcfour128,arcfour256 [preauth]
debug2: kex_parse_kexinit: aes128-cbc,aes128-ctr,aes192-cbc,aes192-ctr,aes256-cbc,aes256-ctr,blowfish-cbc,blowfish-ctr,cast128-cbc,cast128-ctr,idea-cbc,idea-ctr,serpent128-cbc,serpent128-ctr,serpent192-cbc,serpent192-ctr,serpent256-cbc,serpent256-ctr,3des-cbc,3des-ctr,twofish128-cbc,twofish128-ctr,twofish192-cbc,twofish192-ctr,twofish256-cbc,twofish256-ctr,twofish-cbc,arcfour,arcfour128,arcfour256 [preauth]
debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-etm@openssh.com,hmac-sha1-96,hmac-sha1-96@openssh.com,hmac-md5,hmac-md5-etm@openssh.com,hmac-md5-96,hmac-md5-96-etm@openssh.com,hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,hmac-ripemd160,hmac-ripemd160-etm@openssh.com,hmac-ripemd160-96,hmac-ripemd160@openssh.com [preauth]
debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-etm@openssh.com,hmac-sha1-96,hmac-sha1-96@openssh.com,hmac-md5,hmac-md5-etm@openssh.com,hmac-md5-96,hmac-md5-96-etm@openssh.com,hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,hmac-ripemd160,hmac-ripemd160-etm@openssh.com,hmac-ripemd160-96,hmac-ripemd160@openssh.com [preauth]
debug2: kex_parse_kexinit: none [preauth]
debug2: kex_parse_kexinit: none [preauth]
debug2: kex_parse_kexinit: [preauth]
debug2: kex_parse_kexinit: [preauth]
debug2: kex_parse_kexinit: first_kex_follows 0 [preauth]
debug2: kex_parse_kexinit: reserved 0 [preauth]
debug2: mac_setup: setup hmac-sha1 [preauth]
debug1: kex: client->server aes128-cbc hmac-sha1 none [preauth]
debug2: mac_setup: setup hmac-sha1 [preauth]
debug1: kex: server->client aes128-cbc hmac-sha1 none [preauth]
debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
debug2: monitor_read: 6 used once, disabling now
debug2: kex_derive_keys [preauth]
debug2: set_newkeys: mode 1 [preauth]
debug1: SSH2_MSG_NEWKEYS sent [preauth]
debug1: expecting SSH2_MSG_NEWKEYS [preauth]
debug2: set_newkeys: mode 0 [preauth]
debug1: SSH2_MSG_NEWKEYS received [preauth]
debug1: KEX done [preauth]
debug1: userauth-request for user root service ssh-connection method none [preauth]
debug1: attempt 0 failures 0 [preauth]
debug2: parse_server_config: config reprocess config len 9
debug2: monitor_read: 8 used once, disabling now
debug2: input_userauth_request: setting up authctxt for root [preauth]
debug2: monitor_read: 4 used once, disabling now
debug2: input_userauth_request: try method none [preauth]
debug1: userauth-request for user root service ssh-connection method keyboard-interactive [preauth]
debug1: attempt 1 failures 0 [preauth]
debug2: input_userauth_request: try method keyboard-interactive [preauth]
debug1: keyboard-interactive devs [preauth]
debug1: auth2_challenge: user=root devs= [preauth]
debug1: kbdint_alloc: devices '' [preauth]
debug2: auth2_challenge_start: devices [preauth]
debug1: userauth-request for user root service ssh-connection method password [preauth]
debug1: attempt 2 failures 1 [preauth]
debug2: input_userauth_request: try method password [preauth]
Accepted password for root from 188.65.168.85 port 56172 ssh2
debug1: monitor_child_preauth: root has been authenticated by privileged process
debug2: mac_setup: setup hmac-sha1
debug2: mac_setup: setup hmac-sha1
debug1: monitor_read_log: child log fd closed
debug2: set_newkeys: mode 0
debug2: set_newkeys: mode 1
debug1: Entering interactive session for SSH2.
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 2097152 max 32768
debug1: input_session_request
debug1: channel 0: new [server-session]
debug2: session_new: allocate (allocated 0 max 10)
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: server_input_channel_req: channel 0 request subsystem reply 1
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req subsystem
debug2: subsystem request for sftp by user root
subsystem request for sftp by user root failed, subsystem not found
debug1: server_input_channel_open: ctype session rchan 1 win 2097152 max 32768
debug1: input_session_request
debug1: channel 1: new [server-session]
debug2: session_new: allocate (allocated 1 max 10)
debug1: session_new: session 1
debug1: session_open: channel 1
debug1: session_open: session 1: link with channel 1
debug1: server_input_channel_open: confirm session
debug1: server_input_channel_req: channel 1 request subsystem reply 1
debug1: session_by_channel: session 1 channel 1
debug1: session_input_channel_req: session 1 req subsystem
debug2: subsystem request for sftp by user root
subsystem request for sftp by user root failed, subsystem not found

Not sure what I should looking for though... ?

I don't understand what you mean by "attach gathered logs to the ticket on YouTrack" ?

0

Thank you for the provided output.

Here is what caught my eye: 

debug2: subsystem request for sftp by user root
subsystem request for sftp by user root failed, subsystem not found  

It seems like "Subsystem sftp" option of the ssh server is not configured, please  set it up with : 

grep sftp /etc/ssh/sshd_config 
Subsystem sftp /usr/lib/openssh/sftp-server

Let me know if it helps. 

0
Avatar
Permanently deleted user

Thank you for the idea, 

Unfortunetly, this does not solve the problem. I try to update the sshd_config as well as the ssh_config itself. But it does not change anything... Not sure what is not working since Filezilla and Putty works... 

0

Since you have updated the sshd_config, could you please provide the same output? 

0

Please sign in to leave a comment.