mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-55587 HOME is now used for key location and known_hosts as well
This commit is contained in:
@@ -36,7 +36,7 @@ public class SSHConfig {
|
||||
/**
|
||||
* User home directory
|
||||
*/
|
||||
@NonNls private final static String USER_HOME;
|
||||
@NonNls public final static String USER_HOME;
|
||||
|
||||
static {
|
||||
String e = System.getenv("HOME");
|
||||
|
||||
@@ -66,22 +66,18 @@ public class SSHMain {
|
||||
* The last error
|
||||
*/
|
||||
private String myLastError = "";
|
||||
/**
|
||||
* user directory
|
||||
*/
|
||||
@NonNls private static final String userDir = System.getProperty("user.home");
|
||||
/**
|
||||
* Path to known hosts file
|
||||
*/
|
||||
@NonNls private static final String knownHostPath = userDir + "/.ssh/known_hosts";
|
||||
@NonNls private static final String knownHostPath = SSHConfig.USER_HOME + "/.ssh/known_hosts";
|
||||
/**
|
||||
* Path to DSA key
|
||||
*/
|
||||
@NonNls private static final String idDSAPath = userDir + "/.ssh/id_dsa";
|
||||
@NonNls private static final String idDSAPath = SSHConfig.USER_HOME + "/.ssh/id_dsa";
|
||||
/**
|
||||
* Path to RSA key
|
||||
*/
|
||||
@NonNls private static final String idRSAPath = userDir + "/.ssh/id_rsa";
|
||||
@NonNls private static final String idRSAPath = SSHConfig.USER_HOME + "/.ssh/id_rsa";
|
||||
|
||||
/**
|
||||
* database of known hosts
|
||||
|
||||
Reference in New Issue
Block a user