how to ssh in from outside?

35 views
Skip to first unread message

Vic Cekvenich

unread,
Feb 23, 2018, 10:48:58 AM2/23/18
to passenger-docker
I'm trying to connect an 'ssh/sftp' ide to docker.

I have it ssh form host to container - nice.

How do I ssh form outside?
I tried
docker run -p 8080:8080 -p 2222:22 bake /sbin/my_init --enable-insecure-key

And it tells me:
 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 
I use the host ip. 
Even hostip on a different port is no joy.

Do I have to setup ip tables? I never have luck with that moving the the ssh port.

Help?

I don't think this should be this hard.

Vic
Reply all
Reply to author
Forward
0 new messages