support: set filePath when user is root
This commit is contained in:
@@ -29,6 +29,7 @@ function sshInfo() {
|
||||
filePath = '/home/ubuntu/.ssh/authorized_keys';
|
||||
user = 'ubuntu';
|
||||
} else {
|
||||
filePath = '/root/.ssh/authorized_keys';
|
||||
user = 'root';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user