port forwarding in docker container in AWS EC2 linux machine

0

I'm a newbie and needing help. Currently playing with the following setup: remote machine an AWS EC2 instance with Ubuntu 18.

I am trying to access Jupyter notebook running in Docker container in AWS EC2 machine but not able to access it. Time out Error

i tried the following command for port tunnelling i read somewhere

ssh -L 8080:localhost:8080 -i /home/user/admin_keypair.pem ec2user@ec2-xx-xxx-xx-xxx.us-east-2.compute.amazonaws.com

but getting this error

Warning: Identity file /home/user/admin_keypair.pem not accessible: No such file or directory. Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

waleed hamid

Posted 2019-10-17T17:14:05.500

Reputation: 1

How do you usually connect to instance via SSH? (just to access terminal) – Pavlus – 2019-10-18T12:16:17.067

ssh -i /path/my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com using this command – waleed hamid – 2019-10-19T04:56:24.983

No answers