summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2024-12-30 16:45:18 +0000
committerLuke Bratch <luke@bratch.co.uk>2024-12-30 16:45:18 +0000
commit82765543fcffabd014fb3df115302102f6ed4c34 (patch)
tree9728a4233e01f86f850d20f13b4f026389d31f3b
parentfcc553d8d84d9505f4b193da54c6b7806fb561e8 (diff)
Switch from "ssh-rsa" to "ecdsa-sha2-nistp256".
-rw-r--r--dns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns.php b/dns.php
index 39ae506..1c074c8 100644
--- a/dns.php
+++ b/dns.php
@@ -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);