DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ???
You need to run ssh-agent, but also have to execute the output of ssh-agent (the line export has to be executed so that ssh-add how to contact the ssh-agent)
ssh-agent is used to hold the passphrase of your private key. It also is valid for that instance of the shell and not from another terminal. From your question, I gather it might be possible that the ssh server uses password authentication rather than public key authentication. The sshd_config, sshd man pages and the comments in the sshd_config file contain instructions on setting up public key authentication. Also, search this site for "public key authorized_keys" for a large number of posts on this subject.
If you have a public key authentication, but your private key doesn't have a passphrase, then it is already possible to start an ssh session without a passphrase. You won't need ssh-agent or ssh-add in this case.
Thanks to all,
I fixed my problem, the ssh-agent doesn't work correcly,
The variables SSH_AGENT_PID SSH_AUTH_SOCK are not exported correcly, so I did it manually and Ok it worked!!!!
by the way, since DSL uses fluxbox, there is no action to disable the "powersave" as in more complete window manager, I wnat to keep the display always awake. So I want to write a script or prog (shell or C) , to simulate a keyboard hit or mouse movement periodically to awake the display if it is off. I don't know how to "replace" a hit key (or move mouse) by a prog.
that's the normal behaviour. You have to add the line i posted in your session script so that all subshells inherit from the export.
Before startx maybe.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.