summaryrefslogtreecommitdiff
path: root/internal/ssh/server/publickeycallback.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ssh/server/publickeycallback.go')
-rw-r--r--internal/ssh/server/publickeycallback.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/ssh/server/publickeycallback.go b/internal/ssh/server/publickeycallback.go
index f7655b4..bcc9004 100644
--- a/internal/ssh/server/publickeycallback.go
+++ b/internal/ssh/server/publickeycallback.go
@@ -2,7 +2,6 @@ package server
import (
"fmt"
- "io/ioutil"
"os"
goUser "os/user"
@@ -30,7 +29,7 @@ func PublicKeyCallback(c gossh.ConnMetadata,
}
dlog.Server.Info(user, "Reading", authorizedKeysFile)
- authorizedKeysBytes, err := ioutil.ReadFile(authorizedKeysFile)
+ authorizedKeysBytes, err := os.ReadFile(authorizedKeysFile)
if err != nil {
return nil, fmt.Errorf("Unable to read authorized keys file|%s|%s|%s",
authorizedKeysFile, user, err.Error())