remove localhost
This commit is contained in:
@@ -29,7 +29,7 @@ jobs:
|
||||
|
||||
- name: Test SSH connection
|
||||
run: |
|
||||
output=$(ssh -p 2223 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost "echo test")
|
||||
output=$(ssh -p 2223 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@127.0.0.1 "echo test")
|
||||
if [ "$output" = "test" ]; then
|
||||
echo "SSH connection test passed"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user