wprins
wprins

Reputation: 876

Remote port forwarding with ssh keys

I'm trying to access localhost:6006 on my remote ubuntu machine using public keys, and put it on my localhost:6006.

The command is something similar to:

ssh -N -L 127.0.0.1:6006:127.0.0.1:6006 [email protected]

but I keep getting public key denied (but I can access the computer with my keys via normal ssh)

Upvotes: 2

Views: 783

Answers (1)

Ben
Ben

Reputation: 5129

You should specify your private key with option -i.

ssh -i [path_of_your_private_key] -N -L 127.0.0.1:6006:127.0.0.1:6006 [email protected]

Upvotes: 2

Related Questions