login about faq

I could not find the authorized_keys on the server end but while with ssh -V command shows openssh v-5.9 installed on it. the files are located at ~/etc/ssh, looking into it, i did not find the authorized_keys here. so trying to log in password less but unable to until now to copy some files. i am totally new to it, so some help would be appreciated. asap.

asked Jun 15 '12 at 15:36

kiran's gravatar image

kiran
1225

edited Jun 15 '12 at 15:42


For a server running openssh you would need to run
$ ssh-keygen -t dsa It will generate local keys on ~/.ssh
After that create authorized_keys file by exporting tectia keys into it:
- Copy the id_dsa_2048_a.pub into the server, RENAMING it
$scpg3 id_dsa_2048_a.pub myuser@myserver:.ssh/id_dsa_myworkstation.pub - Export the key in openssh format:
$ ssh-keygen -e -f id_dsa_myworkstation.pub >> authorized_keys

You´re good to go. Note that on Tectia authorized_keys is a folder, on openssh it is a file with all authorized_keys.

Regards,
José.

link

answered Jun 15 '12 at 16:38

jtoj's gravatar image

jtoj
11112

Jose thanks for your quick response. Yes i have by now generated the id_dsa.pub as well as id_dsa in my local host ~/.ssh. 1. not having authorized_keys in ~/etc/.ssh u mean I have to create it on the server side so as to use it? 2. I don have scpg3 installed, man scpg3 gives me no command exists, so I think i should use scp only. ur suggestion? my ssh_config file has listed BATCHMODE "no", since i want to do this copy automatically on regular basis, how should i processed, shall i change batch mode to "yes" or is there any host based permissions as well so I do not mess up

(Jun 15 '12 at 17:26) kiran kiran's gravatar image

Kiran,

You must create the authorized_keys file (Openssh) or folder (Tectia) in the user profile where you want to logon to.
Tectia client can generate AND push the keys for you, that is easier and error free.
Lets say you want to connect from kiran@workstation to kiran@remoteserver.
If you are running Tectia on workstation and openssh on remote host you should have the following:

For worksation, use ssh-keygen-g3 to generate keys:
They will be on $HOME/.ssh2 folder, usually named id_dsa_2048_a' and id_dsa_2048_a.pub

For remotehost, use ssh-keygen to generate keys on $HOME/.ssh folder, usually named id_dsa and id_dsa.pub
You must then copy the public key, and I would rename it:
$ scp kiran@workstation:~/.ssh2/id_dsa_2048_a.pub $HOME/.ssh/remotehost.pub You need the password for this
Then import it into your authorized_keys file:
$ ssh-keygen -i -f remotehost.pub >> authorized_keys

Now when on worstation you can log into remotehost without sumplying a password.

José.

link

answered Jun 18 '12 at 04:35

jtoj's gravatar image

jtoj
11112

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×24
×6
×2
×1

Asked: Jun 15 '12 at 15:36

Seen: 2,934 times

Last updated: Jun 18 '12 at 04:35

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.