acp/ssh.sh

4 lines
143 B
Bash
Raw Normal View History

2023-02-16 08:17:21 +01:00
#!/bin/bash
ssh-keygen -f "/home/pop-os/.ssh/known_hosts" -R "[localhost]:2222"
ssh -p 2222 -o StrictHostKeyChecking=accept-new test@localhost