Explorar o código

Use $HOME in ssh.sh script

Andrea Fazzi hai 1 ano
pai
achega
67dbb3265e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ssh.sh

+ 1 - 1
ssh.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
-ssh-keygen -f "/home/pop-os/.ssh/known_hosts" -R "[localhost]:2222"
+ssh-keygen -f "${HOME}/.ssh/known_hosts" -R "[localhost]:2222"
 ssh -p 2222 -o StrictHostKeyChecking=accept-new test@localhost