소스 검색

Use $HOME in ssh.sh script

Andrea Fazzi 1 년 전
부모
커밋
67dbb3265e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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