How to generate Private Key to SSH connection?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to generate Private Key to SSH connection?

lexcorp
When I try to connect to a remote host via SSH I get this error:

I understand that this error is generated because I have not entered the
private key or because it is not in the correct format.

*How can I generate the private key?*

Oct  8 13:29:07 srvens01pro guacd[29322]: Creating new client for protocol
"ssh"
Oct  8 13:29:07 srvens01pro guacd[29322]: Connection ID is
"$e46da1bd-c8a0-44e5-9ede-51ae1a6bdc69"
Oct  8 13:29:07 srvens01pro guacd[31730]: User
"@fc5cd9b3-a5f4-4007-8011-24e44ff0cb15" joined connection
"$e46da1bd-c8a0-44e5-9ede-51ae1a6bdc69" (1 users now present)
Oct  8 13:29:07 srvens01pro server: 13:29:07.813 [http-bio-8080-exec-3] INFO
o.a.g.tunnel.TunnelRequestService - User "rperez" connected to connection
"2".

Oct  8 13:29:07 srvens01pro server: 13:29:07.821 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 13:29:52 srvens01pro server: 13:29:52.766 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Checking for expired sessions...
Oct  8 13:29:52 srvens01pro server: 13:29:52.766 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Session check completed in 0 ms.

Oct  8 13:34:52 srvens01pro server: 13:34:52.766 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Checking for expired sessions...
Oct  8 13:34:52 srvens01pro server: 13:34:52.766 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Session check completed in 0 ms.
Oct  8 13:35:25 srvens01pro guacd[31730]: No known host keys provided, host
identity will not be verified.
Oct  8 13:35:36 srvens01pro guacd[31730]: Password and keyboard-interactive
authentication are not supported by the SSH server
Oct  8 13:35:36 srvens01pro guacd[31730]: User
"@fc5cd9b3-a5f4-4007-8011-24e44ff0cb15" disconnected (0 users remain)
Oct  8 13:35:36 srvens01pro server: 13:35:36.468 [http-bio-8080-exec-3] INFO
o.a.g.tunnel.TunnelRequestService - User "rperez" disconnected from
connection "2". Duration: 388655 milliseconds
Oct  8 13:35:36 srvens01pro server: 13:35:36.468 [http-bio-8080-exec-3]
DEBUG o.a.g.net.InetGuacamoleSocket - Closing socket to guacd.
Oct  8 13:35:36 srvens01pro server: Exception in thread "Thread-1662"
java.lang.IllegalStateException: Message will not be sent because the
WebSocket session has been closed
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:387)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:344)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:788)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
Oct  8 13:35:36 srvens01pro server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
Oct  8 13:35:36 srvens01pro server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
Oct  8 13:35:36 srvens01pro server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
Oct  8 13:35:36 srvens01pro guacd[31730]: Last user of connection
"$e46da1bd-c8a0-44e5-9ede-51ae1a6bdc69" disconnected




--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to generate Private Key to SSH connection?

ivanmarcus

This post may be of use to you?:

http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/SSH-Config-issue-td8068.html#a8069


On 9/10/2020 2:45 a.m., lexcorp wrote:
When I try to connect to a remote host via SSH I get this error:

I understand that this error is generated because I have not entered the
private key or because it is not in the correct format.

*How can I generate the private key?*

Oct  8 13:29:07 srvens01pro guacd[29322]: Creating new client for protocol
"ssh"
Oct  8 13:29:07 srvens01pro guacd[29322]: Connection ID is
"$e46da1bd-c8a0-44e5-9ede-51ae1a6bdc69"
Oct  8 13:29:07 srvens01pro guacd[31730]: User
"@fc5cd9b3-a5f4-4007-8011-24e44ff0cb15" joined connection
"$e46da1bd-c8a0-44e5-9ede-51ae1a6bdc69" (1 users now present)
Oct  8 13:29:07 srvens01pro server: 13:29:07.813 [http-bio-8080-exec-3] INFO 
o.a.g.tunnel.TunnelRequestService - User "rperez" connected to connection
"2".

Oct  8 13:29:07 srvens01pro server: 13:29:07.821 [http-bio-8080-exec-1]
DEBUG o.a.g.a.mysql.conf.MySQLEnvironment - Database recognized as MariaDB
10.3.24.
Oct  8 13:29:52 srvens01pro server: 13:29:52.766 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Checking for expired sessions...
Oct  8 13:29:52 srvens01pro server: 13:29:52.766 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Session check completed in 0 ms.

Oct  8 13:34:52 srvens01pro server: 13:34:52.766 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Checking for expired sessions...
Oct  8 13:34:52 srvens01pro server: 13:34:52.766 [pool-1-thread-1] DEBUG
o.a.g.rest.auth.HashTokenSessionMap - Session check completed in 0 ms.
Oct  8 13:35:25 srvens01pro guacd[31730]: No known host keys provided, host
identity will not be verified.
Oct  8 13:35:36 srvens01pro guacd[31730]: Password and keyboard-interactive
authentication are not supported by the SSH server
Oct  8 13:35:36 srvens01pro guacd[31730]: User
"@fc5cd9b3-a5f4-4007-8011-24e44ff0cb15" disconnected (0 users remain)
Oct  8 13:35:36 srvens01pro server: 13:35:36.468 [http-bio-8080-exec-3] INFO 
o.a.g.tunnel.TunnelRequestService - User "rperez" disconnected from
connection "2". Duration: 388655 milliseconds
Oct  8 13:35:36 srvens01pro server: 13:35:36.468 [http-bio-8080-exec-3]
DEBUG o.a.g.net.InetGuacamoleSocket - Closing socket to guacd.
Oct  8 13:35:36 srvens01pro server: Exception in thread "Thread-1662"
java.lang.IllegalStateException: Message will not be sent because the
WebSocket session has been closed
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:387)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.startMessage(WsRemoteEndpointImplBase.java:344)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase$TextMessageSendHandler.write(WsRemoteEndpointImplBase.java:788)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:252)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:195)
Oct  8 13:35:36 srvens01pro server: at
org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
Oct  8 13:35:36 srvens01pro server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.sendInstruction(GuacamoleWebSocketTunnelEndpoint.java:152)
Oct  8 13:35:36 srvens01pro server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint.access$200(GuacamoleWebSocketTunnelEndpoint.java:53)
Oct  8 13:35:36 srvens01pro server: at
org.apache.guacamole.websocket.GuacamoleWebSocketTunnelEndpoint$2.run(GuacamoleWebSocketTunnelEndpoint.java:253)
Oct  8 13:35:36 srvens01pro guacd[31730]: Last user of connection
"$e46da1bd-c8a0-44e5-9ede-51ae1a6bdc69" disconnected




--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: How to generate Private Key to SSH connection?

lexcorp
Thank you Ivan, this works for me.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]