When connecting to multiple Windows PCs using SSH port forwarding, you might get error:
The host key for localhost has changed @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed.
Consider the security implications of option:
option in the
freerdp command to bypass this error message.
Since the SSH server and RDP are both on the same Windows PC, the man-in-the-middle check may be somewhat less likely to be needed.
- Remote PC IP: 188.8.131.52
- Remote PC SSH port: 22 (open TCP firewall)
- Remote PC RDP port: 3389 (blocked by remote PC firewall)
#!/bin/sh ssh -f -p 22 -L 3391:localhost:3389 email@example.com sleep 1; xfreerdp /cert-ignore /u:joe /v:localhost:3391