Expectation is Need to connect aws server through java code by using Private Key I was able to log in successfully until Redhat 8 implemented in the server end. If I disable the FIS (Fuse Integration Service) then working as expected. I have tried with many ways, no luck. please help to resolve this issue Let me know if need more info Using intellij for java code Private key format is RSA 3 and i have converted into RSA 2 by using PuttyGen Key pattern is________________________________________ PuTTY-User-Key-File-2: ssh-rsa Encryption:none Comment: rsa-key-20220125 Public-Lines:12 AAAn23vnonBIhk...................... .......................................................... ........................................................... Private-Lines:28 AACABdkfjal905slknf................ ............................................................. Private-MAC: nbfajesrkkjnajfnga;alksdnfal;dks Java code is <pre lang="Java">JSch jsch = new JSch(); jsch.addIdentity(privatekey) Session session = jsch.getSession(username, hostname, port); session.setConfig ("StrickHostKeyChecking","no") session.connect(); I am always getting below error com.jcraft.jsch.JSchException : Auth Fail at com.jcraft.jsch.Session.connect(Session.java:519) at com.jcraft.jsch.Session.connect(Session.java:183) Log from server end# by using linux command "systemctl status sshd.service ________________________________________ rexec line 29: Deprecated option KeyRegenerationInterval rexec line 30: Deprecated option ServerKeyBits rexec line 66: Deprecated option RSAAuthentication rexec line 82: Deprecated option RhostsRSAAuthentication reprocess config line 66 : Deprecated option RSAAuthentication reprocess config line 82 : Deprecated option RhostsRSAAuthentication error: Receivved disconnect from <ipaddress> port <id>:3 com.jcrat.jsch.JSchException:Auth fail [preauth] Disconnected from authenticating user ec2-user <ipaddress> port <id> [preauth] ________________________________________ Please find below train -f messages when i try to logged in through Putty 0.76 successfully Service Tail message when i try to log in through PuTTY successfully Reached Target Timers Reached target Paths Listening on D-Bus User Message Bus Socket Reached target Sockets Reached target Basic System Reached target default Startup finished in 324ms Started User Manager for UID 1000
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)