0

I would port forward with ssh but when I try to do that the ssh client always log in instead of port forward

ssh -i /mnt/storage/jenkins/.ssh/prod_key [email protected] -L 1868:database.region.rds.amazonaws.com:5432

I can't understand why. I tried to change the sequence but it doesn-t works.

I changed in the /etc/ssh/sshd conf

AllowTcpForwarding yes
GatewayPorts yes
0

1 Answer 1

1

as per man ssh

-N Do not execute a remote command. This is useful for just forwarding ports.

2
  • thats right. I just want to forward ports
    – GergA
    Apr 6, 2018 at 12:08
  • Solved with the "&" at the end of command
    – GergA
    Apr 6, 2018 at 12:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .