LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2007, 07:49 AM   #1
philosophia
Member
 
Registered: Jun 2006
Posts: 54

Rep: Reputation: 15
passwordless ssh question


I used this tutorial to do passwordless ssh connections between my macbook and my linux desktop

http://blogs.translucentcode.org/mic...es/000230.html

One problem I have -
Every time I reboot and start up a terminal, I have to
rm ~/.ssh-agent.sh
ssh-agent > ~/.ssh-agent.sh
source .ssh-agent.sh
ssh-add ~/.ssh/id_dsa
Is there any way I can get this to work without having to delete, recreate and source the .ssh-agent.sh file every time I reboot?
 
Old 10-16-2007, 08:03 AM   #2
dstar101
Member
 
Registered: Oct 2007
Location: Quetta, Pakistan,South Asia
Distribution: Moving to Ubuntu very soon
Posts: 47

Rep: Reputation: 15
yes you can do this through bash programming or write some python script and add it in start up
 
Old 10-16-2007, 09:24 AM   #3
sleepyEDB
Member
 
Registered: Dec 2005
Location: /USA/MI/Detroit/home
Distribution: MEPIS, antiX, RHEL
Posts: 105

Rep: Reputation: 15
Lightbulb

I've set up passwordless ssh using the instructions below, and don't have to do anything after a reboot.

Managing ssh for Scripts and cron jobs

They go into a bit more detail than is necessary for just passwordless ssh, but the basic operations are:
  1. Create passwordless key on local box
  2. Copy key to remote box and add it to the /.ssh/authorized_keys file
  3. Create passwordless key on remote box
  4. Copy key to local box and add it to the /.ssh/authorized_keys file
  5. Make sure permissions on the /.ssh/ folder and it's contents are set to 644
Hope that helps,


sleepy
 
Old 10-16-2007, 09:46 AM   #4
philosophia
Member
 
Registered: Jun 2006
Posts: 54

Original Poster
Rep: Reputation: 15
thanks guys, it's working
 
Old 10-16-2007, 10:26 AM   #5
sleepyEDB
Member
 
Registered: Dec 2005
Location: /USA/MI/Detroit/home
Distribution: MEPIS, antiX, RHEL
Posts: 105

Rep: Reputation: 15
Thumbs up

Cool, I'm glad to hear it.


sleepy
 
  


Reply



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
Passwordless ssh isn't dcroxton Linux - Software 8 07-18-2008 12:16 PM
yet another "passwordless ssh" question soccercisco Linux - Networking 5 06-15-2007 05:50 PM
Can't use passwordless ssh sunhui Linux - Security 1 10-03-2006 08:29 PM
ssh passwordless question matticus Linux - Newbie 4 07-12-2006 03:45 AM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration