LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-14-2011, 06:19 AM   #16
digitalformula
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by salasi View Post
I know that, but you have a deal with unSpawn and I shouldn't do anything to stand in the way of you getting the most value out of that deal. (It is an excellent deal, btw.)

That said, you asked something specific about iptables, so I though that I could jump in with a bit of detail about that without treading on unSpawn's toes.
Yep, understood and agreed. From my perspective I assure you that nothing anyone's said has confused or gotten in the way of anything anyone else has said. The info each of you has provided complements the info provided by the other person, in fact.
 
Old 04-23-2011, 04:25 AM   #17
digitalformula
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Hi all,

I've got SSH secured about as well as I can but have a question - hope you don't mind.

I've generated the public key for my Macbook, put it on my Ubuntu server and configured SSH to use public key authentication. I'm then using the following command to connect to the Ubuntu server:

ssh ubuntudev -p 55222 -i /Users/me/.ssh/id_rsa_ubuntudev -o PubkeyAuthentication=yes

The first time I do this, Keychain Access pops up and asks for the password phrase I setup so I enter it and everything works fine i.e. I can SSH into by Ubuntu server without any problems. I work for a bit, exit the secure session and it's all good.

BUT then, later on when I want to start a new SSH session, I hit the same command and I get this:
macbook:.ssh me$ ssh ubuntudev -p 55222 -i /Users/me/.ssh/id_rsa_ubuntudev -o PubkeyAuthentication=yes
Identity added: /Users/me/.ssh/id_rsa_ubuntudev (/Users/me/.ssh/id_rsa_ubuntudev)
Received disconnect from 192.168.17.52: 2: Too many authentication failures for me

What does that mean? I'm confused as to why I'm allowed to login once but only once. I can 'fix' it by doing this:

ssh-add -D

to remove all identities but that's obviously not the way to do this properly.

Can any of you help?
 
Old 04-23-2011, 04:31 AM   #18
digitalformula
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by digitalformula View Post
Hi all,

I've got SSH secured about as well as I can but have a question - hope you don't mind.
Wow, my first successful Linux troubleshooting attempt ... I fixed it. Added the following to ~/.ssh/config:

hostname ubuntudev
IdentityFile /Users/me/.ssh/id_rsa_ubuntudev
IdentitiesOnly yes

Working.
 
  


Reply

Tags
apache, debian, lamp, mysql


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommendations for a web server landysaccount Linux - Server 5 10-11-2010 02:02 AM
LXer: Best practices in securing a Web Server LXer Syndicated Linux News 0 04-22-2009 05:00 AM
Surfing the web from a PC via a remote linux server? Software recommendations. muskiediver Linux - Software 2 02-21-2008 09:41 AM
Linux web server book recommendations? pxumsgdxpcvjm Linux - General 1 08-22-2005 01:51 PM
Web Server Hardware Recommendations jekingry Linux - Hardware 1 09-24-2003 11:52 AM


All times are GMT -5. The time now is 11:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration