FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-19-2008, 01:21 PM
"abdelkader belahcene"
 
Default ssh connection without passwd

Hi every one,

I am using DSL on small miniPC.

I tried the ssh-keygen it seemed running correctly, it generates the
key (pub and priv),
but the ssh-add gave cannot open a connection to
authentifcation agent ???? , I tried it after ssh-agent I got same error.


In fact I want an automatic ( from scrpit without passwd ) connection
to myserver using ssh. I don't know if ssh has an option to disable
the passwd or to send it thru the command ???

thanks a lot
best regards
bela


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-19-2008, 02:07 PM
Anthony
 
Default ssh connection without passwd

Hello,

if a understand, you want to connect to a host without password throught
ssh.
Use the ~/.ssh/authorized_keys

add the pub key of HostA in the authorized_keys of HostB.
You will be able to connect to HostB from HostA.

by

Anthony

abdelkader belahcene a écrit :

Hi every one,

I am using DSL on small miniPC.

I tried the ssh-keygen it seemed running correctly, it generates the
key (pub and priv),
but the ssh-add gave cannot open a connection to
authentifcation agent ???? , I tried it after ssh-agent I got same error.


In fact I want an automatic ( from scrpit without passwd ) connection
to myserver using ssh. I don't know if ssh has an option to disable
the passwd or to send it thru the command ???

thanks a lot
best regards
bela






--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-19-2008, 02:09 PM
Raj Kiran Grandhi
 
Default ssh connection without passwd

abdelkader belahcene wrote:

Hi every one,

I am using DSL on small miniPC.

I tried the ssh-keygen it seemed running correctly, it generates the
key (pub and priv),


Use ssh-copy-id to copy your public key to the ssh server. This requires
that password based connections are allowed to that server.



but the ssh-add gave cannot open a connection to
authentifcation agent ???? , I tried it after ssh-agent I got same error.


In fact I want an automatic ( from scrpit without passwd ) connection
to myserver using ssh. I don't know if ssh has an option to disable
the passwd or to send it thru the command ???

thanks a lot
best regards
bela





--

If you can't explain it simply, you don't understand it well enough.
-- Albert Einstein


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-19-2008, 02:39 PM
Anthony
 
Default ssh connection without passwd

Example :

su - usera
ssh-keygen


usera@HOSTA:~/.ssh$ cat ~/.ssh/id_rsa.pub
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAw7KhpWfG/RRZhaAZlUVK9iH07LnzeO1dgs1vmOX1vK1EZ+p/Pru6UZqSl0sOaBNOIffjG1F4IeRTVw+7CRdnPPcil4htRwFCjM Qi11uJcCqfTjaHS5gcvqOOtUPoBlY6WM+35BRzPNdAhnwSWpxV mEfgtDI4Hi18XVU3V9IHTK645oNgHix4GMAQc8IlESmf2HWifA mJogT4qozKZwpA8lyCeOKTMAvTa3GyeqMWx5weuvuI5thMa+bT lIByUGPjqJvWISEiKXXaZt6ioFdXxXMgFC+Or5zzWG5yBouXJQ CbKDwyuhsFuEOVu83ykHU+YIytA0/FXcBZjg6tiGgnVQ==
usera@HOSTA



on hostb:

su - userb
vi ~/.ssh.authorized_keys
add the key:
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAw7KhpWfG/RRZhaAZlUVK9iH07LnzeO1dgs1vmOX1vK1EZ+p/Pru6UZqSl0sOaBNOIffjG1F4IeRTVw+7CRdnPPcil4htRwFCjM Qi11uJcCqfTjaHS5gcvqOOtUPoBlY6WM+35BRzPNdAhnwSWpxV mEfgtDI4Hi18XVU3V9IHTK645oNgHix4GMAQc8IlESmf2HWifA mJogT4qozKZwpA8lyCeOKTMAvTa3GyeqMWx5weuvuI5thMa+bT lIByUGPjqJvWISEiKXXaZt6ioFdXxXMgFC+Or5zzWG5yBouXJQ CbKDwyuhsFuEOVu83ykHU+YIytA0/FXcBZjg6tiGgnVQ==
usera@HOSTA


From HostB
ssh HOSTA



Raj Kiran Grandhi a écrit :

abdelkader belahcene wrote:

Hi every one,

I am using DSL on small miniPC.

I tried the ssh-keygen it seemed running correctly, it generates the
key (pub and priv),


Use ssh-copy-id to copy your public key to the ssh server. This
requires that password based connections are allowed to that server.



but the ssh-add gave cannot open a connection to
authentifcation agent ???? , I tried it after ssh-agent I got same
error.



In fact I want an automatic ( from scrpit without passwd ) connection
to myserver using ssh. I don't know if ssh has an option to disable
the passwd or to send it thru the command ???

thanks a lot
best regards
bela








--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-19-2008, 03:10 PM
Sjoerd Hardeman
 
Default ssh connection without passwd

Raj Kiran Grandhi wrote:

abdelkader belahcene wrote:

Hi every one,

I am using DSL on small miniPC.

I tried the ssh-keygen it seemed running correctly, it generates the
key (pub and priv),


Use ssh-copy-id to copy your public key to the ssh server. This requires
that password based connections are allowed to that server.

I think he knows that, but want to use ssh-agent to store the keypasswd.
Make sure you start up ssh-agent properly, just entering ssh-agent will
*not* work. Did de googling for you, see eg.

http://mah.everybody.org/docs/ssh#run-ssh-agent

Sjoerd




but the ssh-add gave cannot open a connection to
authentifcation agent ???? , I tried it after ssh-agent I got same
error.



In fact I want an automatic ( from scrpit without passwd ) connection
to myserver using ssh. I don't know if ssh has an option to disable
the passwd or to send it thru the command ???

thanks a lot
best regards
bela
 
Old 06-20-2008, 10:35 AM
"abdelkader belahcene"
 
Default ssh connection without passwd

Thanks for help,
You are right normally that is enough,
but on my miniPC running DSL (small Damn..) distro, the command
ssh-add doensn't work ??? so even if I user the Priv/Pub key I
have to give the paraphrase??

For this reason I want to send in the line the password , I haven't
security problem, I work in secure LAN.

In fact I have a serveur where an application runs, I want to send
the display to thin Client, Where I installed DSL, because the disk (
just a flas) is small (500 MB) and can't support a big distro.
I tried the command like on server for example:
gedit --display=192.168.20.173:1 , and other :0 , but nothing
came. the address corresponds to the remote machine, where
xhost + is activated.

I noticed that when you run vncserver , it creates the command

xtigntvnc :1 -desktop X -auth /home/user/.Xauthority
It opens a port for the X server ( it uses port 5901 )

The solution is somewhere here ??!

Thanks for help
best regards
bela



thanks for help.

On Thu, Jun 19, 2008 at 3:07 PM, Anthony <anthony.berger@cea.fr> wrote:
> Hello,
>
> if a understand, you want to connect to a host without password throught
> ssh.
> Use the ~/.ssh/authorized_keys
>
> add the pub key of HostA in the authorized_keys of HostB.
> You will be able to connect to HostB from HostA.
>
> by
>
> Anthony
>
> abdelkader belahcene a écrit :
>>
>> Hi every one,
>>
>> I am using DSL on small miniPC.
>>
>> I tried the ssh-keygen it seemed running correctly, it generates the
>> key (pub and priv),
>> but the ssh-add gave cannot open a connection to
>> authentifcation agent ???? , I tried it after ssh-agent I got same
>> error.
>>
>>
>> In fact I want an automatic ( from scrpit without passwd ) connection
>> to myserver using ssh. I don't know if ssh has an option to disable
>> the passwd or to send it thru the command ???
>>
>> thanks a lot
>> best regards
>> bela
>>
>>
>>
>
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 03:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org