acp/ssh.sh

4 lines
138 B
Bash
Raw Normal View History

2023-02-16 08:17:21 +01:00
#!/bin/bash
2023-02-16 15:28:53 +01:00
ssh-keygen -f "${HOME}/.ssh/known_hosts" -R "[localhost]:2222"
ssh -p 2222 -o StrictHostKeyChecking=accept-new test@localhost