ssh -o ProxyCommand='ssh -i ~/.ssh/bastion.pem -p 22 -W %h:%p ec2-user@xxx.xxx.xxx.xxx' -L 6432:remote-db-host:5432 hogehoge-stg-web
Last active
August 2, 2018 03:32
-
-
Save peketamin/3cef4b996db8742d517d32925c6376fa to your computer and use it in GitHub Desktop.
ssh port forward database port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If this error cause, | |
``` | |
Received disconnect from UNKNOWN port 65535:2: Too many authentication failures | |
Disconnected from UNKNOWN port 65535 | |
``` | |
``` | |
$ ssh host-name -o 'IdentitiesOnly yes' | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment