[
https://issues.apache.org/jira/browse/KARAF-7603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17649422#comment-17649422
]
Peter Berkman commented on KARAF-7603:
--------------------------------------
I'm having the same issue on JDK 1.8.0_162:
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
full debug:
{code:java}
client -v -h localhost -a 8101 -l 3
426 [main] DEBUG org.apache.sshd.common.util.security.SecurityUtils -
register([BC, true, false]) not registered - enabled=null, supported={}
426 [main] DEBUG org.apache.sshd.common.util.security.SecurityUtils -
register([EdDSA, true, false]) not registered - enabled=null, supported={}
Logging in as ngs
537 [main] INFO org.apache.sshd.common.io.DefaultIoServiceFactoryFactory - No
detected/configured IoServiceFactoryFactory using Nio2ServiceFactoryFactory
545 [main] DEBUG
org.apache.sshd.client.config.hosts.DefaultConfigFileHostEntryResolver -
resolveEffectiveHost([ngs, localhost, 8101, null, null]@null:{}/{}) => {}
545 [main] DEBUG org.apache.sshd.client.SshClient - connect([ngs, localhost,
8101]@null:{}) no overrides
553 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Connector - Connecting to
localhost/127.0.0.1:8101
556 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Connector -
setOption([SO_REUSEADDR, true, Property[socket-reuseaddr](Boolean]])[null] from
property={}
560 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session - Creating IoSession on
[/0:0:0:0:0:0:0:0:56729, localhost/127.0.0.1:8101, null] from null via {}
850 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.client.session.ClientSessionImpl - Client session created:
Nio2Session[local=/0:0:0:0:0:0:0:0:56729, remote=localhost/127.0.0.1:8101]
851 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
ClientUserAuthService(ClientSessionImpl[null@localhost/127.0.0.1:8101]) client
methods: [publickey, keyboard-interactive, password]
855 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.common.session.helpers.SessionTimeoutListener -
sessionCreated(ClientSessionImpl[null@localhost/127.0.0.1:8101]) tracking
856 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
initializeProxyConnector(ClientSessionImpl[null@localhost/127.0.0.1:8101]) no
proxy to initialize
857 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
sendIdentification(ClientSessionImpl[null@localhost/127.0.0.1:8101]):
SSH-2.0-APACHE-SSHD-2.9.1
858 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 27 bytes
860 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
sendKexInit(ClientSessionImpl[null@localhost/127.0.0.1:8101]) Send
SSH_MSG_KEXINIT
867 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[null@localhost/127.0.0.1:8101], 0, 20,
SSH_MSG_KEXINIT, 1171]) packet #null sending command={}[{}] len={}
867 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 1184 bytes
872 [sshd-SshClient[31610302]-nio2-thread-1] DEBUG
org.apache.sshd.client.SshClient -
setupDefaultSessionIdentities(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])
key identity provider override in session listener
874 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
doReadIdentification(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])
line='SSH-2.0-APACHE-SSHD-2.9.1'
875 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
readIdentification(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) Server
version string: SSH-2.0-APACHE-SSHD-2.9.1
876 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
handleKexInit(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) SSH_MSG_KEXINIT
880 [main] DEBUG org.apache.sshd.client.session.ClientSessionImpl -
addPasswordIdentity(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])
SHA256:5Wpga3KdtWHarmCkjuDdS+QCV9x3KFsF3II3hVZ/3As
884 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setNegotiationResult([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], kex
algorithms, ecdh-sha2-nistp521]) Kex: null = {}
884 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setNegotiationResult([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], server
host key algorithms, rsa-sha2-512]) Kex: null = {}
884 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setNegotiationResult([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
encryption algorithms (client to server), aes128-ctr]) Kex: null = {}
885 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setNegotiationResult([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
encryption algorithms (server to client), aes128-ctr]) Kex: null = {}
885 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setNegotiationResult([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], mac
algorithms (client to server), hmac-sha2-256]) Kex: null = {}
885 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setNegotiationResult([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], mac
algorithms (server to client), hmac-sha2-256]) Kex: null = {}
885 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setNegotiationResult([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
compression algorithms (client to server), none]) Kex: null = {}
885 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setNegotiationResult([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
compression algorithms (server to client), none]) Kex: null = {}
935 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.kex.DHGClient -
init(DHGClient[ecdh-sha2-nistp521])[ClientSessionImpl[ngs@localhost/127.0.0.1:8101]]
Send SSH_MSG_KEXDH_INIT
935 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 1, 30, 30, 138])
packet #null sending command={}[{}] len={}
935 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 152 bytes
949 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.kex.DHGClient - next([DHGClient[ecdh-sha2-nistp521],
ClientSessionImpl[ngs@localhost/127.0.0.1:8101], SSH_MSG_KEXDH_REPLY])[null]
process command={}
963 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setServerKey([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], ssh-rsa,
SHA256:iX/duflWui7WB/GzSWF6gFBCqZAMeRqMc5gduPy3/to]) keyType=null, digest={}
963 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
handleKexMessage([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
ecdh-sha2-nistp521, 31])[null] KEX processing complete after cmd={}
963 [sshd-SshClient[31610302]-nio2-thread-6] WARN
org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at
localhost/127.0.0.1:8101 presented unverified RSA key:
SHA256:iX/duflWui7WB/GzSWF6gFBCqZAMeRqMc5gduPy3/to
964 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
checkKeys([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], ssh-rsa,
SHA256:iX/duflWui7WB/GzSWF6gFBCqZAMeRqMc5gduPy3/to, true]) key=null-{},
verified={}
964 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
sendNewKeys(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) Send
SSH_MSG_NEWKEYS
964 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
prepareNewKeys(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) session
ID=fa:85:22:06:17:03:35:d4:7d:b7:1d:c1:72:64:b6:01:30:10:70:70:d7:03:0c:08:40:8c:99:b2:49:9c:09:33:de:ca:2a:03:1d:f4:55:e7:0b:b2:4d:f8:8a:19:1a:b0:5d:ff:81:1f:03:c0:27:2d:8c:65:b1:ea:08:e1:f0:bb
986 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 2, 21,
SSH_MSG_NEWKEYS, 1]) packet #null sending command={}[{}] len={}
986 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 16 bytes
998 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setOutputEncoding([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
BaseCipher[AES, ivSize=16, kdfSize=16,AES/CTR/NoPadding, blkSize=16],
BaseMac[HmacSHA256] - block=32/32 bytes, encrypt-then-mac=false,
none[Deflater/-1], 134217728]): cipher null; mac {}; compression {}; blocks
limit {}
1000 [sshd-SshClient[31610302]-nio2-thread-6] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
handleNewKeys(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) No pending
packets to flush at end of KEX
1001 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
handleNewKeys(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) SSH_MSG_NEWKEYS
command=SSH_MSG_NEWKEYS
1001 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
setInputEncoding([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
BaseCipher[AES, ivSize=16, kdfSize=16,AES/CTR/NoPadding, blkSize=16],
BaseMac[HmacSHA256] - block=32/32 bytes, encrypt-then-mac=false,
none[Inflater/-1], 4294967296]): cipher null; mac {}; compression {}; blocks
limit {}
1001 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
sendInitialServiceRequest(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) Send
SSH_MSG_SERVICE_REQUEST for ssh-userauth
1001 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 3, 5,
SSH_MSG_SERVICE_REQUEST, 17]) packet #null sending command={}[{}] len={}
1002 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 80 bytes
1003 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
auth(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])[ssh-connection] send
SSH_MSG_USERAUTH_REQUEST for 'none'
1003 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 4, 50,
SSH_MSG_USERAUTH_REQUEST, 34]) packet #null sending command={}[{}] len={}
1003 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 96 bytes
1005 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.common.kex.extension.DefaultClientKexExtensionHandler -
handleServerSignatureAlgorithms(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]):
[ssh-rsa, rsa-sha2-256, rsa-sha2-512, [email protected],
ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521]
1005 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.common.kex.extension.DefaultClientKexExtensionHandler -
handleServerSignatureAlgorithms(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]):
PubkeyAcceptedAlgorithms before: [[email protected],
[email protected],
[email protected], [email protected],
[email protected], ecdsa-sha2-nistp256, ecdsa-sha2-nistp384,
ecdsa-sha2-nistp521, [email protected], rsa-sha2-512,
rsa-sha2-256, ssh-rsa]
1005 [sshd-SshClient[31610302]-nio2-thread-8] DEBUG
org.apache.sshd.common.kex.extension.DefaultClientKexExtensionHandler -
handleServerSignatureAlgorithms(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]):
PubkeyAcceptedAlgorithms after: [ecdsa-sha2-nistp256, ecdsa-sha2-nistp384,
ecdsa-sha2-nistp521, [email protected], rsa-sha2-512,
rsa-sha2-256, ssh-rsa, [email protected],
[email protected],
[email protected], [email protected],
[email protected]]
1006 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
handleServiceAccept(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])
SSH_MSG_SERVICE_ACCEPT service=ssh-userauth
1007 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
processUserAuth([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], false,
keyboard-interactive,password,publickey]) Received SSH_MSG_USERAUTH_FAILURE -
partial=null, methods={}
1007 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
tryNext([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], [publickey,
keyboard-interactive, password], [keyboard-interactive, password, publickey]])
starting authentication mechanisms: client=null, server={}
1007 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
tryNext(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) attempting
method=publickey
1012 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.config.keys.DefaultClientIdentitiesWatcher -
loadKeys(C:\Users\peter\.ssh\id_rsa) no key loaded
1012 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.config.keys.DefaultClientIdentitiesWatcher -
loadKeys(C:\Users\peter\.ssh\id_dsa) no key loaded
1012 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.config.keys.DefaultClientIdentitiesWatcher -
loadKeys(C:\Users\peter\.ssh\id_ecdsa) no key loaded
1013 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.config.keys.DefaultClientIdentitiesWatcher -
loadKeys(C:\Users\peter\.ssh\id_ed25519) no key loaded
1013 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.auth.pubkey.UserAuthPublicKey -
resolveAttemptedPublicKeyIdentity(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])[ssh-connection]
no more keys to send
1013 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
tryNext(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) no initial request
sent by method=publickey
1013 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.auth.pubkey.UserAuthPublicKey -
destroy(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])[ssh-connection]
1014 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
tryNext(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) attempting
method=keyboard-interactive
1014 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.auth.keyboard.UserAuthKeyboardInteractive -
verifyTrialsCount([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
ssh-connection, SSH_MSG_USERAUTH_REQUEST, 0, 3])[null] cmd={} - {} out of {}
1015 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.auth.keyboard.UserAuthKeyboardInteractive -
sendAuthDataRequest([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
ssh-connection, keyboard-interactive, , ])[null] send SSH_MSG_USERAUTH_REQUEST
for {}: lang={}, methods={}
1015 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 5, 50,
SSH_MSG_USERAUTH_REQUEST, 58]) packet #null sending command={}[{}] len={}
1015 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 112 bytes
1015 [sshd-SshClient[31610302]-nio2-thread-11] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
tryNext(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) successfully processed
initial buffer by method=keyboard-interactive
1017 [sshd-SshClient[31610302]-nio2-thread-13] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
processUserAuth([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 60,
keyboard-interactive]) delegate processing of null to {}
1017 [sshd-SshClient[31610302]-nio2-thread-13] DEBUG
org.apache.sshd.client.auth.keyboard.UserAuthKeyboardInteractive -
processAuthDataRequest([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
ssh-connection, Password authentication, , en-US, 1])[null]
SSH_MSG_USERAUTH_INFO_REQUEST name={}, instruction={}, language={},
num-prompts={}
1017 [sshd-SshClient[31610302]-nio2-thread-13] DEBUG
org.apache.sshd.client.auth.keyboard.UserAuthKeyboardInteractive -
verifyTrialsCount([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
ssh-connection, SSH_MSG_USERAUTH_INFO_REQUEST, 1, 3])[null] cmd={} - {} out of
{}
1017 [sshd-SshClient[31610302]-nio2-thread-13] DEBUG
org.apache.sshd.client.auth.keyboard.UserAuthKeyboardInteractive -
getUserResponses(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) use password
candidate for interaction=Password authentication
1018 [sshd-SshClient[31610302]-nio2-thread-13] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 6, 61,
SSH_MSG_USERAUTH_INFO_RESPONSE, 12]) packet #null sending command={}[{}] len={}
1018 [sshd-SshClient[31610302]-nio2-thread-13] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 80 bytes
1021 [sshd-SshClient[31610302]-nio2-thread-3] DEBUG
org.apache.sshd.client.session.ClientUserAuthService -
processUserAuth(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])
SSH_MSG_USERAUTH_SUCCESS Succeeded with keyboard-interactive
1021 [sshd-SshClient[31610302]-nio2-thread-3] DEBUG
org.apache.sshd.client.auth.keyboard.UserAuthKeyboardInteractive -
destroy(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])[ssh-connection]
1021 [sshd-SshClient[31610302]-nio2-thread-3] DEBUG
org.apache.sshd.client.session.ClientConnectionService -
stopHeartBeat(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) no heartbeat to
stop
1022 [sshd-SshClient[31610302]-nio2-thread-3] DEBUG
org.apache.sshd.client.session.ClientConnectionService -
startHeartbeat([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], PT1M,
[email protected]]) - started at interval=null with request={}
09:12:25 [FINE ] org.jline.utils.Log logr | jnaSupport.isConsoleOutput():
09:12:25 [FINE ] org.jline.utils.Log logr | Error creating JNA based
terminal: com/sun/jna/LastErrorException
09:12:25 [FINEST ] org.jline.utils.Log logr | Registering signal INT with
handler
org.jline.terminal.impl.AbstractWindowsTerminal$$Lambda$115/1157058691@1e4a7dd4
09:12:25 [FINEST ] org.jline.utils.Log logr | Registering signal QUIT with
handler
org.jline.terminal.impl.AbstractWindowsTerminal$$Lambda$115/1157058691@4b9e255
09:12:25 [FINEST ] org.jline.utils.Log logr | Ignoring unsupported signal QUIT
09:12:25 [FINEST ] org.jline.utils.Log logr | Registering signal TSTP with
handler
org.jline.terminal.impl.AbstractWindowsTerminal$$Lambda$115/1157058691@133e16fd
09:12:25 [FINEST ] org.jline.utils.Log logr | Ignoring unsupported signal TSTP
09:12:25 [FINEST ] org.jline.utils.Log logr | Registering signal CONT with
handler
org.jline.terminal.impl.AbstractWindowsTerminal$$Lambda$115/1157058691@51b279c9
09:12:25 [FINEST ] org.jline.utils.Log logr | Ignoring unsupported signal CONT
09:12:25 [FINEST ] org.jline.utils.Log logr | Registering signal INFO with
handler
org.jline.terminal.impl.AbstractWindowsTerminal$$Lambda$115/1157058691@1ad282e0
09:12:25 [FINEST ] org.jline.utils.Log logr | Ignoring unsupported signal INFO
09:12:25 [FINEST ] org.jline.utils.Log logr | Registering signal WINCH with
handler
org.jline.terminal.impl.AbstractWindowsTerminal$$Lambda$115/1157058691@7f416310
09:12:25 [FINEST ] org.jline.utils.Log logr | Ignoring unsupported signal WINCH
09:12:25 [FINE ] org.jline.utils.Log logr | Registering shutdown-hook:
Thread[JLine Shutdown Hook,5,main]
09:12:25 [FINE ] org.jline.utils.Log logr | Adding shutdown-hook task:
org.jline.terminal.impl.AbstractWindowsTerminal$$Lambda$120/1615039080@6c9f5c0d
09:12:25 [FINE ] org.jline.utils.Log logr | Using terminal JansiWinSysTerminal
1118 [main] DEBUG org.apache.sshd.client.channel.ChannelShell - init()
service=[ClientConnectionService[ClientSessionImpl[ngs@localhost/127.0.0.1:8101]],
ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 0] session=null id={}
1121 [main] DEBUG org.apache.sshd.common.channel.Window -
init([Window[client/local](ChannelShell[id=0,
recipient=-1]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]), 2097152,
2097152, 32768]) size=null, max={}, packet={}
1122 [main] DEBUG org.apache.sshd.client.session.ClientConnectionService -
registerChannel([ClientConnectionService[ClientSessionImpl[ngs@localhost/127.0.0.1:8101]],
0, true, ChannelShell[id=0,
recipient=-1]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]])[id=null,
registered={}] {}
1122 [main] DEBUG org.apache.sshd.client.session.ClientSessionImpl -
createShellChannel([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 0, null])
created id=null - PTY={}
1124 [main] DEBUG org.apache.sshd.client.channel.ChannelShell -
open(ChannelShell[id=0,
recipient=-1]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) Send
SSH_MSG_CHANNEL_OPEN - type=session
1124 [main] DEBUG org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 7, 90,
SSH_MSG_CHANNEL_OPEN, 24]) packet #null sending command={}[{}] len={}
1124 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 80 bytes
1125 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientConnectionService -
channelOpenConfirmation([ChannelShell[id=0,
recipient=-1]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 0, 2097152,
32768]) SSH_MSG_CHANNEL_OPEN_CONFIRMATION sender=null, window-size={},
packet-size={}
1126 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.channel.ChannelShell - setRecipient(ChannelShell[id=0,
recipient=-1]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) recipient=0
1126 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.common.channel.Window -
init([Window[client/remote](ChannelShell[id=0,
recipient=0]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]), 2097152,
2097152, 32768]) size=null, max={}, packet={}
1126 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.channel.ChannelShell - doOpenPty(ChannelShell[id=0,
recipient=0]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) Send agent
forwarding request
1126 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientSessionImpl -
encode([ClientSessionImpl[ngs@localhost/127.0.0.1:8101], 8, 98,
SSH_MSG_CHANNEL_REQUEST, 36]) packet #null sending command={}[{}] len={}
1126 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
writeBuffer(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) writing 96 bytes
1127 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.channel.ChannelShell - doOpenPty(ChannelShell[id=0,
recipient=0]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) Send
SSH_MSG_CHANNEL_REQUEST pty-req: PtyChannelConfiguration[type=windows,
lines=43, columns=200, height=480, width=640, modes={IXON=0, ONLCR=0, VINTR=3,
TOSTOP=0, ISTRIP=0, VSTART=-1, PARMRK=0, VREPRINT=-1, VSTATUS=-1, IEXTEN=0,
ECHONL=0, INLCR=0, ECHO=1, VEOL=-1, OCRNL=0, ICRNL=0, NOFLSH=0, VEOF=4,
IGNPAR=0, VSTOP=-1, VDISCARD=-1, ECHOE=0, ONLRET=0, VERASE=-1, VDSUSP=-1,
ONOCR=0, OPOST=0, VWERASE=-1, VLNEXT=-1, INPCK=0, VQUIT=-1, ISIG=1, IXOFF=0,
VKILL=-1, VEOL2=-1, VSUSP=26, ICANON=1, ECHOK=0, IGNCR=0, IXANY=0}]
09:12:25 [FINE ] org.jline.utils.Log logr | Removing shutdown-hook:
Thread[JLine Shutdown Hook,5,main]
09:12:25 [FINEST ] org.jline.utils.Log logr | Registering signal INT with
handler java.lang.Terminator$1@35fc6dc4
1129 [main] DEBUG org.apache.sshd.client.SshClient - close(SshClient[31610302])
Closing immediately
1130 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Connector -
close(org.apache.sshd.common.io.nio2.Nio2Connector@64d2d351) Closing immediately
1132 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.common.channel.AbstractChannel$GracefulChannelCloseable -
close(ChannelShell[id=0,
recipient=0]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101])[immediately=true]
processing
1132 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Session -
close(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) Closing immediately
1132 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.client.session.ClientConnectionService -
unregisterChannel(ChannelShell[id=0,
recipient=0]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101])
result=ChannelShell[id=0,
recipient=0]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]
1132 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Session -
doCloseImmediately(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) closing
socket=sun.nio.ch.WindowsAsynchronousSocketChannelImpl[connected
local=/0:0:0:0:0:0:0:0:56729 remote=localhost/127.0.0.1:8101]
1132 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.common.util.closeable.SequentialCloseable -
doClose(org.apache.sshd.common.util.closeable.SequentialCloseable$1@1ac6e725)
signal close complete immediately=true
1132 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Session -
doCloseImmediately(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101])
socket=sun.nio.ch.WindowsAsynchronousSocketChannelImpl[closed] closed
1132 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.common.util.closeable.SequentialCloseable -
doClose(org.apache.sshd.common.util.closeable.SequentialCloseable$1@7404849a)
signal close complete immediately=true
1133 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Connector -
unmapSession(id=101): Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]
1133 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.common.util.closeable.SequentialCloseable -
doClose(org.apache.sshd.common.util.closeable.SequentialCloseable$1@658dd6ee)
signal close complete immediately=true
1133 [main] DEBUG org.apache.sshd.client.session.ClientSessionImpl -
close(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) Closing immediately
1133 [main] DEBUG org.apache.sshd.client.session.ClientSessionImpl -
signalAuthFailure([ClientSessionImpl[ngs@localhost/127.0.0.1:8101],
SshException, false, false, Session is being closed]) type=null, signalled={},
first={}: {}
1134 [sshd-SshClient[31610302]-nio2-thread-4] DEBUG
org.apache.sshd.common.io.nio2.Nio2Session -
handleReadCycleCompletion(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101]) IoSession has been closed, stop reading
1134 [main] DEBUG org.apache.sshd.client.session.ClientConnectionService -
close(ClientConnectionService[ClientSessionImpl[ngs@localhost/127.0.0.1:8101]])
Closing immediately
1134 [main] DEBUG org.apache.sshd.client.session.ClientConnectionService -
stopHeartBeat(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) stopping
1134 [main] DEBUG org.apache.sshd.client.session.ClientConnectionService -
stopHeartBeat(ClientSessionImpl[ngs@localhost/127.0.0.1:8101]) stopped
1135 [main] DEBUG org.apache.sshd.client.session.ClientConnectionService -
close(ClientConnectionService[ClientSessionImpl[ngs@localhost/127.0.0.1:8101]])[Immediately]
closed
1135 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Session -
close(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101])[Immediately] state already Closed
1135 [main] DEBUG org.apache.sshd.common.util.closeable.SequentialCloseable -
doClose(org.apache.sshd.common.util.closeable.SequentialCloseable$1@18a70f16)
signal close complete immediately=true
1135 [main] DEBUG org.apache.sshd.client.session.ClientSessionImpl -
close(ClientSessionImpl[ngs@localhost/127.0.0.1:8101])[Immediately] closed
1135 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Session -
close(Nio2Session[local=/0:0:0:0:0:0:0:0:56729,
remote=localhost/127.0.0.1:8101])[Immediately] closed
1136 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Connector -
close(org.apache.sshd.common.io.nio2.Nio2Connector@64d2d351)[Immediately] closed
1136 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2ServiceFactory -
close(org.apache.sshd.common.io.nio2.Nio2ServiceFactory@62e136d3) Closing
immediately
1136 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2ServiceFactory - Shutdown
group
1137 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2ServiceFactory - Group
successfully shut down
1137 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2ServiceFactory - Shutdown
executor
1138 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2ServiceFactory - Shutdown
complete
1138 [main] DEBUG org.apache.sshd.common.io.nio2.Nio2ServiceFactory -
close(org.apache.sshd.common.io.nio2.Nio2ServiceFactory@62e136d3)[Immediately]
closed
1138 [main] DEBUG org.apache.sshd.common.util.closeable.SequentialCloseable -
doClose(org.apache.sshd.common.util.closeable.SequentialCloseable$1@c8e4bb0)
signal close complete immediately=true
1138 [main] DEBUG org.apache.sshd.client.SshClient -
close(SshClient[31610302])[Immediately] closed
org.apache.sshd.common.SshException: DefaultOpenFuture[ChannelShell[id=0,
recipient=-1]-ClientSessionImpl[ngs@localhost/127.0.0.1:8101]]: Failed
(IllegalArgumentException) to execute: Invalid UINT32 value: -1
at
org.apache.sshd.common.future.AbstractSshFuture.lambda$verifyResult$1(AbstractSshFuture.java:132)
at
org.apache.sshd.common.future.AbstractSshFuture.formatExceptionMessage(AbstractSshFuture.java:190)
at
org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:131)
at
org.apache.sshd.client.future.DefaultOpenFuture.verify(DefaultOpenFuture.java:39)
at
org.apache.sshd.client.future.DefaultOpenFuture.verify(DefaultOpenFuture.java:32)
at
org.apache.sshd.common.future.VerifiableFuture.verify(VerifiableFuture.java:43)
at org.apache.karaf.client.Main.main(Main.java:281)
Caused by: java.lang.IllegalArgumentException: Invalid UINT32 value: -1
at
org.apache.sshd.common.util.ValidateUtils.createFormattedException(ValidateUtils.java:213)
at
org.apache.sshd.common.util.ValidateUtils.throwIllegalArgumentException(ValidateUtils.java:179)
at
org.apache.sshd.common.util.ValidateUtils.checkTrue(ValidateUtils.java:162)
at
org.apache.sshd.common.util.buffer.BufferUtils.validateUint32Value(BufferUtils.java:703)
at org.apache.sshd.common.util.buffer.Buffer.putUInt(Buffer.java:726)
at
org.apache.sshd.client.channel.PtyCapableChannelSession.lambda$doOpenPty$0(PtyCapableChannelSession.java:265)
at java.util.HashMap.forEach(HashMap.java:1289)
at
org.apache.sshd.client.channel.PtyCapableChannelSession.doOpenPty(PtyCapableChannelSession.java:263)
at
org.apache.sshd.client.channel.ChannelShell.doOpen(ChannelShell.java:45)
at
org.apache.sshd.client.channel.AbstractClientChannel.handleOpenSuccess(AbstractClientChannel.java:366)
at
org.apache.sshd.common.session.helpers.AbstractConnectionService.channelOpenConfirmation(AbstractConnectionService.java:545)
at
org.apache.sshd.common.session.helpers.AbstractConnectionService.process(AbstractConnectionService.java:456)
at
org.apache.sshd.common.session.helpers.CurrentService.process(CurrentService.java:109)
at
org.apache.sshd.common.session.helpers.AbstractSession.doHandleMessage(AbstractSession.java:594)
at
org.apache.sshd.common.session.helpers.AbstractSession.lambda$handleMessage$0(AbstractSession.java:525)
at
org.apache.sshd.common.util.threads.ThreadUtils.runAsInternal(ThreadUtils.java:66)
at
org.apache.sshd.common.session.helpers.AbstractSession.handleMessage(AbstractSession.java:524)
at
org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1644)
at
org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:485)
at
org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:64)
at
org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:371)
at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:344)
at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:339)
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.lambda$completed$0(Nio2CompletionHandler.java:38)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:37)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
at sun.nio.ch.Invoker$2.run(Invoker.java:218)
at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748) {code}
> Exception while trying to get Karaf shell with JDK17
> ----------------------------------------------------
>
> Key: KARAF-7603
> URL: https://issues.apache.org/jira/browse/KARAF-7603
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.3.8, 4.4.2
> Reporter: Karthick
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> We use Karaf 4.3.8 and 4.4.2 and fire some commands to get bundle status etc
> from karaf shell. This works properly till 4.3.7 and 4.4.1 but once we
> stepped to latest patch version of these (4.4.2 and 4.3.8), then we get the
> following exception
> bash-4.4$ client
> _client: Ignoring predefined value for KARAF_HOME_
> _Logging in as karaf_
> *_DefaultOpenFuture[ChannelShell[id=0,
> recipient=-1]-ClientSessionImpl[karaf@/127.0.0.1:8101]]: Failed
> (IllegalArgumentException) to execute: Invalid UINT32 value: -1_*
> _command terminated with exit code 1_
> ------------------------------------------
> While in the earlier version 4.3.7 (and 4.4.1)
>
> bash-4.4$ client
> client: Ignoring predefined value for KARAF_HOME
> Logging in as karaf
> __ _ __ ___
> / //{_}/{_}___ __________ _/ __/
> / ,< / __ `/ __{_}/ __ `/ /{_}
> / /| |/ /{_}/ / / / /{_}/ / __/
> /{_}/ |{_}|_{_},{_}/{_}/ _{_},{_}/{_}/
>
> Apache Karaf (4.3.7)
>
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit 'system:shutdown' to shutdown Karaf.
> Hit '<ctrl-d>' or type 'logout' to disconnect shell from current session.
>
> karaf@root()>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)