Jump to content

Unable To Use Key Auth With Ssh And Autossh

Recommended Posts

Maybe I'm doing something wrong (it's most likely me) but I am unable to ssh from the pineapple mk4 into any computer running openssh using key authentication. However, I can ssh with a password.

What I am doing in more detail:

1. With dropbear for creating the ssh keys

1. create dropbear key

a. dropbearkey -t rsa -f id_rsa

b. copy printed public key to a remote machines authorized_key file

2. ssh -i id_rsa will@<ip-of-server>

a. just asks for the password auth

2. Using openssh on a separate machine to create the key pair

1. create the key

a. ssh-keygen then specify a local location for the files

b. scp the files to the pineapple

c. place id_rsa in /root/.ssh/id_rsa

d. copy id_rsa.pub into remote aut_keys file and replace hostname

2. ssh -i /root/.ssh/id_rsa will@<ip-of-server>

a. command returns: "ssh: Exited: String too long"

could anyone tell me what I am doing wrong?

Link to comment
Share on other sites


  • T-Mobile ZTE MF591/ MKIV 1.0.2/ XP;btr2


  • ssh on boot
  • ssh autoconnect
  • Wireless
  • Cron Jobs
  • 3G bootup
  • 3G redial
  • SSH: online

IP addresses:

  • USB 3G Modem:
  • Public Internet: <----this keeps changing, I think on every refresh? * I'll check on that

I am trying to ssh into pineapple remotely using public ip given through T-Mobile ZTE MF591. I get a timeout error.

I can ssh into pineapple from netbook associated with pineapple ap, then ssh out thru internet using the 4G modem, into my honeypot@home. Just not in the reverse.

:blink: any suggestions?

in posting this I've decided to attempt disabling the 3G redial. but as I go to log into the pineapple, I can't find it's SSID AGAIN!!!

Link to comment
Share on other sites

Sounds like you're doing it right - as far as I can tell. Though you'll need to check the config of the remote server to ensure that it supports key authentication. Have you consulted the documentation from the SSH page on the MK4?

I updated my firmware to 1.0.2 and I am able to SSH with keys now. I have no clue what changed but it is fixed now!

Thanks for your help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...