Use $HOME in ssh.sh script

This commit is contained in:
Andrea Fazzi 2023-02-16 15:28:53 +01:00
parent 839ef91f05
commit 67dbb3265e

2
ssh.sh
View file

@ -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