Jump to content


Photo

Unable To Use Key Auth With Ssh And Autossh


  • Please log in to reply
3 replies to this topic

#1 JeeshOfOne

JeeshOfOne

    Newbie

  • Members
  • 2 posts

Posted 04 March 2012 - 10:53 PM

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?

#2 Darren Kitchen

Darren Kitchen

    Hak5 Junkie

  • Root Admin
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 3,808 posts
  • Gender:Male
  • Location:San Francisco, CA

Posted 05 March 2012 - 05:54 PM

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?
Posted ImagePosted ImagePosted Image

#3 condor

condor

    run.amok

  • Active Members
  • PipPipPipPipPip
  • 156 posts
  • Gender:Male
  • Location:midwest
  • Interests:tcp/ip, 802.x.
    perl (tim towtdi!)
    quantum physics for the laymen
    sk8boarding
    Open_Source
    interaction with women

Posted 11 March 2012 - 10:37 PM

Hardware/firmware/OS
  • T-Mobile ZTE MF591/ MKIV 1.0.2/ XP;btr2
Services:
  • ssh on boot
  • ssh autoconnect
  • Wireless
  • Cron Jobs
  • 3G bootup
  • 3G redial
  • SSH: online
IP addresses:
  • USB 3G Modem: 22.78.73.14
  • Public Internet: 208.54.80.254 <----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!!!

8bf46ea097.gif


#4 JeeshOfOne

JeeshOfOne

    Newbie

  • Members
  • 2 posts

Posted 12 March 2012 - 10:45 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users