Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Use the "-i credentials-file" option when calling ssh, or use the authorized-keys-file.
See the ssh manpage for details. I don't know what you want to do, but I would recommend reading the manpages for ssh_config, sshd_config and ssh. If only a handfull of users are allowed to login to ssh, then consider the "Allow Users" option. All other users will be denied. This is easier than using "DenyUsers" to deny system users access. Root and system users well known, and someone trying to break in will most certainly try each one. If you need automated access, look into rsync. And/or consider "AllowRootLogin forced-commands-only".
1).. no, it is not a brute force script but it could be used for that...But in my case i just want to automate a process in a very simple script...
2).. the root@nemo it is just an example.. but thanks for the security thing...
That's interesting using credential files... but i know i saw in some script, which i don't remember, a way to make conections with ssh just using ssh and some redirection for stdin... but i really really don't remember how to do that... it didn't use any credentials or autorized-keys which I know that's a better way and more secure... but by now i just want to make that redirection of stdin..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.