Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Saving rsa key< Next Oldest | Next Newest >
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Sep. 27 2007,05:37 QUOTE

Quote (bigjohn @ Sep. 26 2007,15:07)

Are you saying I should copy *key* from /etc/ssh to /home?
Or to /home/dsl?

Copy keys to your home directory, /home/dsl, which gets saved automatically. ($HOME can be substituted for /home/dsl when writing commands in xterm) I created a folder named /home/dsl/ssh_keys where I put them.  

Quote
Then copy back on startup to /etc/ssh before starting ssh in bootlocal.sh?

yes, if that's where your keys are stored (I'm using ssh, which writes the keys to /etc/ssh.  So my entry in bootlocal.sh is
"cp /home/dsl/ssh_keys/*key*  /etc/ssh/"   *key* copies any filename with the word "key" in it.  You can then place "/etc/init.d/ssh start" in bootlocal.sh, and it will not recopy the keys.

Quote
And, in plain English, what is the difference between ssh and sshd?

sshd is the daemon program for ssh. If you load ssh and type "top" in the terminal, you'll see the process running as "sshd" (What actually loads is /usr/sbin/sshd).
Back to top
Profile PM 
Divago Offline





Group: Members
Posts: 83
Joined: April 2007
Posted: Oct. 09 2007,11:12 QUOTE

Quote (jpeters @ Sep. 27 2007,01:37)

Quote (bigjohn @ Sep. 26 2007,15:07)

Copy keys to your home directory, /home/dsl, which gets saved automatically. ($HOME can be substituted for /home/dsl when writing commands in xterm) I created a folder named /home/dsl/ssh_keys where I put them.  

Quote
Then copy back on startup to /etc/ssh before starting ssh in bootlocal.sh?

yes, if that's where your keys are stored (I'm using ssh, which writes the keys to /etc/ssh.  So my entry in bootlocal.sh is
"cp /home/dsl/ssh_keys/*key*  /etc/ssh/"   *key* copies any filename with the word "key" in it.  You can then place "/etc/init.d/ssh start" in bootlocal.sh, and it will not recopy the keys.

this is exactly wht i did
i added also a "rm -fr" to remove authomatically generated key 'cause (dunno why) cp -f does not work

btw it's working fine
ty for help
Back to top
Profile PM 
6 replies since Sep. 21 2007,13:34 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Saving rsa key

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code