Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » SSH ONLY Remote System Connection Fails(Existing Remote System connections fail to Ubuntu 22.04 systems.)
SSH ONLY Remote System Connection Fails [message #1867776] Sat, 06 July 2024 15:25 Go to next message
Paul Lewis is currently offline Paul LewisFriend
Messages: 3
Registered: July 2024
Junior Member
Newcomer to this forum but been using Eclipse for many years and this is my first need to seek help.
Anyway, I upgraded a AWS Ubuntu 20.04 VM to 22.04 and keep getting a RSEG1066 Auth Error.
I was running a very old 2020-12 version of Eclipse on Windows 11 for a long time now with no issues.
I've upgraded to 2024-06 as thought that would sort the problem, afraid not.
1 major difference Is I had to swap from the older ppk auth key files to pem key files but even doing this I still can't connect.
I can get Putty and NotePad++, using NppFTP, to connect no problems with the pem key I have and the user auth details.
It does seem the issue may probably be with Ubuntu 22.04 changes to encryption algorithm support from reading various sites but what's changed with Eclipse that it can't connect where as putty etc. still can?
Do I need to add a new version of a more secure key to the server so Eclipse can connect?

Thanks, Diplonics

P.S. I tried searching this topic on the forum but the 'Forum Search' return a 403 Forbidden error!!
Re: SSH ONLY Remote System Connection Fails [message #1867779 is a reply to message #1867776] Sat, 06 July 2024 18:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33185
Registered: July 2009
Senior Member
It would probably help to know what you are doing when you receive the error and to what are you trying to connect. What exactly did you install/download? Something from here?

https://www.eclipse.org/downloads/packages/

Or from here:

https://download.eclipse.org/eclipse/downloads/

Can you share a stack trace (from the Error Log view)?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: SSH ONLY Remote System Connection Fails [message #1867782 is a reply to message #1867779] Sun, 07 July 2024 06:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33185
Registered: July 2009
Senior Member
There is this more dedicated forum, but it's not very active:

https://www.eclipse.org/forums/index.php?t=thread&frm_id=210


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: SSH ONLY Remote System Connection Fails [message #1867788 is a reply to message #1867782] Sun, 07 July 2024 16:00 Go to previous messageGo to next message
Paul Lewis is currently offline Paul LewisFriend
Messages: 3
Registered: July 2024
Junior Member
I downloaded the windows zip for eclipse-ide-php-developers from www.eclipse.org/downloads....
This started after the Server Upgrade from 20.04 to 22.04.
I changed nothing in Eclipse, Putty or Notepad++.
Once the server upgrade finished I could reconnect no problem with putty and notepad++ without changing anything.
However Eclipse has started this connection issue.
When I load Eclipse and select an SFTP folder on the remote server I get a UI as captured in attached image 1.

This is when I get the first error message as follows:
****Saved passwords are not available for migration to secure storage. Deprecated authorization classes (org.eclipse.core.runtime.compatibility.auth) are not installed.****
However this only relates to securely storing the password locally which I don't do.

So, I enter my password and things move onto the next attached image 2, I'm presuming this first password is for my account on the server:

After I enter the auth key password in this second image I get the RSEG1066 error with this message:
****Failed to connect sshd on "<Server IP here>"****
****Auth Fail****

And the Error Log for this is empty with:

****An exception stack trace is not available.****

Log Session Data is:
eclipse.buildId=4.32.0.20240606-1231
java.version=21.0.3
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IE
Framework arguments: -product org.eclipse.epp.package.php.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.php.product
Re: SSH ONLY Remote System Connection Fails [message #1868037 is a reply to message #1867788] Tue, 09 July 2024 14:46 Go to previous messageGo to next message
Paul Lewis is currently offline Paul LewisFriend
Messages: 3
Registered: July 2024
Junior Member
Got this RSE connection working again but not sure if most secure/best solution.
As I guessed, but wasn't nearly sure, the fix was needed server side.
Not sure what this means for the Eclipse RSE setup given Putty and Notepad++ reconnected no problems after the server upgrade.
Is Eclipse handing the OpenSSH Pem to the server differently then Putty and Notepad++!!
The only difference in the keys being used is Notepad++ uses the servers original pem key, Putty uses the ppk version and I generated an OpenSSH pem for Eclipse.

Anyway, in the server authlog I was getting this error block only when Eclipse was trying to connect:
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
error: Received disconnect from xxx.xxx.xxx.xxx port 62726:3: com.jcraft.jsch.JSchException: Auth fail [preauth]
Disconnected from authenticating user XXXXX xxx.xxx.xxx.xxx port 62726 [preauth]
sudo:   XXXXX : TTY=pts/0 ; PWD=/home/XXXXX ; USER=root ; COMMAND=/usr/bin/tail -n 100 /var/log/auth.log
sudo: pam_unix(sudo:session): session opened for user root(uid=0) by XXXXX(uid=1001)


Using a solution from the askubuntu 1409105 question ubuntu-22-04-ssh-the-rsa-key-isnt-working-since-upgrading-from-20-04 I added this:
PubkeyAcceptedKeyTypes=+ssh-rsa into /etc/ssh/ssh_config and restarted sshd and now I can connect again....
Re: SSH ONLY Remote System Connection Fails [message #1868046 is a reply to message #1868037] Tue, 09 July 2024 16:30 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33185
Registered: July 2009
Senior Member
Thank you for sharing a solution. Sorry I did not know where to suggest to get more expert help.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Automate update classpath in eclipse neon2
Next Topic:Link Text editor and Project Explorer doesn't work in some cases
Goto Forum:
  


Current Time: Sat Jul 20 01:57:16 GMT 2024

Powered by FUDForum. Page generated in 0.08432 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top