daniboy92 Posted January 23, 2015 Share Posted January 23, 2015 (edited) Hello guys, First of all sorry for bad english. This is another noob question, i'm trying to make a ssh connection but not in a local net rather internet. I'm trying to ssh to my pineapple using this configuration: Host: root@MyPublicIp Port: 2222 Listen Port: 22 Then i generate my public key.... Public Key - Generate At the end i go to my android and set: root@MyPublicIP:22 and click in Quick Connection but then y get: CONNECTION REFUSED... This is the app i use: [Juice SSH] https://play.google.com/store/apps/details?id=com.sonelli.juicessh&hl=es Hope you can help me! Edited January 23, 2015 by daniboy92 Quote Link to comment Share on other sites More sharing options...
sud0nick Posted January 23, 2015 Share Posted January 23, 2015 (edited) If you are doing this over the internet you need to forward the port on your router. I'm not sure which port this is on yours because I don't know the difference between Port and Listen Port in your example. I assume port refers to remote port and listen port refers to a local port? If so then you are connecting to the wrong port when you send your initial connection request. To sum up: Find the port that SSH is using on your Pineapple (most likely 22) Forward port 22 on your internet facing router to your Pineapple's IP address Make sure your settings on the client follow this setup. I'm not sure if there is any extra work with the keys as I am not a pro in that area but hopefully someone else can either verify or correct what I have stated. Edited January 23, 2015 by sud0nick Quote Link to comment Share on other sites More sharing options...
daniboy92 Posted January 24, 2015 Author Share Posted January 24, 2015 I was trying to make that but i can't make it work... Anyone knows why? Quote Link to comment Share on other sites More sharing options...
m40295 Posted January 25, 2015 Share Posted January 25, 2015 (edited) I don't understand your question. So 22 is the SSH port on the pineapple go to your router go to port forward forward port 2222 to 22 0n ip pineapple ip. FRom your router mine is. 192.168.1.113 Now when I ssh in to my public external address. I ssh to root@000.000.000.000:2222. 2222 port fwd to pineapple ip port 22 I hope that helps If not. Here is a detailed guide http://www.bitvise.com/port-forwarding Edited January 25, 2015 by m40295 Quote Link to comment Share on other sites More sharing options...
daniboy92 Posted January 25, 2015 Author Share Posted January 25, 2015 Ok, so all i need to do is activate into my router port forward 22 and 2222... I do this and now i can activate my ssh perfectly and connect to my pineapple anywhere! Thank you two, my problem was to understand your explanation in english. Thank you guys. Quote Link to comment Share on other sites More sharing options...
m40295 Posted January 26, 2015 Share Posted January 26, 2015 Check out the latest hak5 video. As it covers ssh tunneling Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.