Hi
I have Guacamole 1.3 on ubuntu server with mysql auth.
I created SSH connections to other computers with username/password
combinations but it would be better with keys.
I tried some ways but it does not worked. Whats wrong or what do i not
understand?
The ssh-keygen is used ont he target pc(Windows 10).
Network
Network:
192.168.1.122
Port: 22
Public host key (Base64): ssh-rsa
predr@ADAM
I dont know this is required or what but tried with the public key that
generated with the private one at ssh-keygen.
Authentication
Username: predr
Password: (login
password for target pc)
Private key: The whole
private key that generated with ssh-keygen.
I tried with and without the -----BEGIN OPENSSH PRIVATE KEY----- -----END
OPENSSH PRIVATE KEY----- pair. Should i use them?
Passpharse: The same
with the one that i use to create ssh-keygen.
Response is: Login failed. Please reconnect and try again.
This is the log from that time:
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.067 [http-nio-8080-exec-9]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.085 [http-nio-8080-exec-9]
DEBUG o.a.g.net.InetGuacamoleSocket - Connecting to guacd at localhost:4822.
Aug 31 07:30:04 ramoth guacd[765]: Creating new client for protocol "ssh"
Aug 31 07:30:04 ramoth guacd[765]: Connection ID is
"$de03dc3b-11d3-44b2-b577-7c8850ca5c9e"
Aug 31 07:30:04 ramoth guacd[1739]: User
"@173c7d15-5558-470e-81e5-08ea2d70a310" joined connection
"$de03dc3b-11d3-44b2-b577-7c8850ca5c9e" (1 users now present)
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.104 [http-nio-8080-exec-9]
INFO o.a.g.tunnel.TunnelRequestService - User "Predrog" connected to
connection "9".
Aug 31 07:30:04 ramoth guacd[1739]: Auth key import failed: (null)
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.129 [http-nio-8080-exec-2]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.133 [http-nio-8080-exec-2]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.137 [http-nio-8080-exec-2]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.140 [http-nio-8080-exec-2]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Aug 31 07:30:04 ramoth guacd[1739]: User
"@173c7d15-5558-470e-81e5-08ea2d70a310" disconnected (0 users remain)
Aug 31 07:30:04 ramoth guacd[1739]: Last user of connection
"$de03dc3b-11d3-44b2-b577-7c8850ca5c9e" disconnected
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.145 [http-nio-8080-exec-10]
INFO o.a.g.tunnel.TunnelRequestService - User "Predrog" disconnected from
connection "9". Duration: 41 milliseconds
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.145 [http-nio-8080-exec-10]
DEBUG o.a.g.net.InetGuacamoleSocket - Closing socket to guacd.
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.147 [http-nio-8080-exec-2]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.151 [http-nio-8080-exec-2]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.160 [http-nio-8080-exec-2]
DEBUG o.a.g.rest.RESTExceptionMapper - Client request rejected: No readable
active connection for tunnel.
Aug 31 07:30:04 ramoth tomcat9[792]: 07:30:04.160 [Thread-7] DEBUG
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Connection to guacd closed.
Aug 31 07:30:04 ramoth tomcat9[792]:
org.apache.guacamole.GuacamoleConnectionClosedException: Connection to guacd
is closed.
Aug 31 07:30:04 ramoth tomcat9[792]: at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.jav
a:183)
Aug 31 07:30:04 ramoth tomcat9[792]: at
org.apache.guacamole.io.ReaderGuacamoleReader.readInstruction(ReaderGuacamol
eReader.java:195)
Aug 31 07:30:04 ramoth tomcat9[792]: at
org.apache.guacamole.protocol.FilteredGuacamoleReader.readInstruction(Filter
edGuacamoleReader.java:81)
Aug 31 07:30:04 ramoth tomcat9[792]: at
org.apache.guacamole.protocol.FilteredGuacamoleReader.readInstruction(Filter
edGuacamoleReader.java:81)
Aug 31 07:30:04 ramoth tomcat9[792]: at
org.apache.guacamole.protocol.FilteredGuacamoleReader.read(FilteredGuacamole
Reader.java:64)
Aug 31 07:30:04 ramoth tomcat9[792]: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(Guacam
oleWebSocketTunnelEndpoint.java:246)
Aug 31 07:30:04 ramoth tomcat9[792]: Caused by: java.net.SocketException:
Socket closed
Aug 31 07:30:04 ramoth tomcat9[792]: at
java.base/java.net.SocketInputStream.read(SocketInputStream.java:183)
Aug 31 07:30:04 ramoth tomcat9[792]: at
java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
Aug 31 07:30:04 ramoth tomcat9[792]: at
java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
Aug 31 07:30:04 ramoth tomcat9[792]: at
java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
Aug 31 07:30:04 ramoth tomcat9[792]: at
java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
Aug 31 07:30:04 ramoth tomcat9[792]: at
java.base/java.io.InputStreamReader.read(InputStreamReader.java:181)
Aug 31 07:30:04 ramoth tomcat9[792]: at
org.apache.guacamole.io.ReaderGuacamoleReader.read(ReaderGuacamoleReader.jav
a:169)
Aug 31 07:30:04 ramoth tomcat9[792]: ... 5 common frames omitted
Aug 31 07:30:05 ramoth guacd[765]: Connection
"$de03dc3b-11d3-44b2-b577-7c8850ca5c9e" removed.
Aug 31 07:30:05 ramoth tomcat9[792]: 07:30:05.709 [http-nio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Aug 31 07:30:05 ramoth tomcat9[792]: 07:30:05.713 [http-nio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MySQL
5.5.5.
Please help
Adam