diff options
| author | Luke Bratch <luke@bratch.co.uk> | 2024-12-30 16:45:18 +0000 |
|---|---|---|
| committer | Luke Bratch <luke@bratch.co.uk> | 2024-12-30 16:45:18 +0000 |
| commit | 82765543fcffabd014fb3df115302102f6ed4c34 (patch) | |
| tree | 9728a4233e01f86f850d20f13b4f026389d31f3b | |
| parent | fcc553d8d84d9505f4b193da54c6b7806fb561e8 (diff) | |
Switch from "ssh-rsa" to "ecdsa-sha2-nistp256".
| -rw-r--r-- | dns.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -51,7 +51,7 @@ function sshrun($command) { $keypub = "/home/bladns.net/.ssh/id_rsa.pub"; $keypriv = "/home/bladns.net/.ssh/id_rsa"; - $connection = ssh2_connect($host, 22, array("hostkey" => "ssh-rsa")); + $connection = ssh2_connect($host, 22, array("hostkey" => "ecdsa-sha2-nistp256")); ssh2_auth_pubkey_file($connection, $user, $keypub, $keypriv); |
