Networking Forums

Networking Forums > Computer Networking > Linux Networking > Anybody have a script to copy SSH keys to all of my other hosts?

Reply
Thread Tools Display Modes

Anybody have a script to copy SSH keys to all of my other hosts?

 
 
Joe Emenaker
Guest
Posts: n/a

 
      12-20-2003, 02:34 PM
About a year or two ago, I wrote a little script that I called
"sshmigrate". Basically, what it did was save me the grunt work of
copying my ssh public-key on one machine to the authorized_keys files
on the other hosts I have accounts on.

This way, once I log into one of my accounts, I can easily just "ssh
fubar.foob.com" and get right in.

However, the version I wrote only does it for version 1 of ssh (and,
hence, only messes with the files in $HOME/.ssh). Now, I've got a
machine that's running SSH2, which keeps the keys and other files in
$HOME/.ssh2... and in another format, no less.

Does anybody out there have a script that does what I'm describing,
but for SSH *and* SSH2?

- Joe
 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      12-20-2003, 10:13 PM
Joe Emenaker <(E-Mail Removed)> wrote:
[..]

> However, the version I wrote only does it for version 1 of ssh (and,
> hence, only messes with the files in $HOME/.ssh). Now, I've got a
> machine that's running SSH2, which keeps the keys and other files in
> $HOME/.ssh2... and in another format, no less.


> Does anybody out there have a script that does what I'm describing,
> but for SSH *and* SSH2?


What the problem with your script? Despite using perhaps another
key, there's no difference with ssh2.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to identify ephemeral port range of Windows server2008 using registry keys? What are the new Registry keys? jhon Fernando Windows Networking 0 09-18-2008 12:28 AM
Copy files using filenames from text files with shell script or bash script altariamx2003@gmail.com Linux Networking 4 11-23-2006 08:27 AM
hosts.deny and hosts.allow problem dan Linux Networking 3 06-15-2005 07:26 PM
WEP Keys BudMan Wireless Internet 8 12-10-2003 04:19 AM
Logon Script setting WEP Encryptions Keys Chris Windows Networking 1 11-30-2003 02:20 PM



1 2 3 4 5 6 7 8 9 10 11