Skip to content

Commit

Permalink
JSch: Accept pubkey algs that support certificates
Browse files Browse the repository at this point in the history
Closes #357
  • Loading branch information
dcommander committed Feb 2, 2023
1 parent 4311796 commit fbaadc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ timeout feature in the TurboVNC Server from working properly.
monitors. This improves the sharpness of the remote desktop and TurboVNC
Viewer GUI when using a Retina display.

5. By default, the TurboVNC Viewer's built-in SSH client now accepts public key
algorithms that support certificates, such as
`rsa-sha2-256-cert-v01@openssh.com`. This can be changed by specifying the
`PubkeyAcceptedAlgorithms` keyword in an OpenSSH config file.


3.0.2
=====
Expand Down
4 changes: 2 additions & 2 deletions java/com/jcraft/jsch/JSch.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/*
Copyright (c) 2002-2018 ymnk, JCraft,Inc. All rights reserved.
Copyright (c) 2018 D. R. Commander. All rights reserved.
Copyright (c) 2018, 2023 D. R. Commander. All rights reserved.
Copyright (c) 2020-2021 Jeremy Norris. All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -133,7 +133,7 @@ public class JSch{
config.put("HashKnownHosts", "no");

config.put("PreferredAuthentications", "gssapi-with-mic,publickey,keyboard-interactive,password");
config.put("PubkeyAcceptedAlgorithms", "rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521");
config.put("PubkeyAcceptedAlgorithms", "rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com");

config.put("CheckCiphers", "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256");
config.put("CheckKexes", "diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521");
Expand Down

0 comments on commit fbaadc2

Please sign in to comment.