This is a discussion on automate file access on server using SSH and passwordless access within the Linux Networking forums, part of the Linux Forums category; My concern is to execute cvommand and access files in directory which is on the server. I want to execute ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
My concern is to execute cvommand and access files in directory which
is on the server. I want to execute those files from the local machine via ssh and for this i need to have a common key so that i dont have to keep making different keys all the time If u have a solution or a cookbook kind of a thing for this please help me jenil |
|
|||
|
wat is windows 2003 server
regards <a href=unificationwars.50webs.com>game</a> <a href=unificationmars.atspace.com>free</a> <a href=http://www.gamestotal.com/>Free MMOG</a> <a href=http://uc.gamestotal.com/>Free MMORPG</a> |
|
|||
|
jenilcmehta@gmail.com wrote:
> My concern is to execute cvommand and access files in directory which > is on the > server. I want to execute those files from the local machine via ssh > and > for this i need to have a common key so that i dont have to keep making > different keys all the time > > If u have a solution or a cookbook kind of a thing for this please help > me > > jenil When I set up no-passwd for root so I could do rsync backups with ssh on the LAN, in root's home dir I did something like this: ssh-keygen -t rsa This should create the files: ..ssh/id_rsa ..ssh/id_rsa.pub Then I copied id_rsa.pub as .ssh/authorized_keys2 to my home dir on the remote host. |
|
|||
|
Nietzsche wrote: > jenilcmehta@gmail.com wrote: > > My concern is to execute cvommand and access files in directory which > > is on the > > server. I want to execute those files from the local machine via ssh > > and > > for this i need to have a common key so that i dont have to keep making > > different keys all the time > > > > If u have a solution or a cookbook kind of a thing for this please help > > me > > > > jenil > > > When I set up no-passwd for root so I could do rsync backups with ssh > on the LAN, in root's home dir I did something like this: > > ssh-keygen -t rsa > > This should create the files: > > .ssh/id_rsa > .ssh/id_rsa.pub > > Then I copied id_rsa.pub as .ssh/authorized_keys2 to my home dir on the > remote host. There's a little bit more. Your (remote user's) home directory can't be readable by anyone but the user, or the login will still require your password. It can be executable but not readable. I personally would make your .ssh directory be mode 700 too. I would advise against allowing root to ssh in, I think it's safer to set up sudo and then make it so root must use the local terminal. You're saying "access" and "execute" both. Presumably these are scripts and you want to run them from remote? |
|
|||
|
> > jenilcmehta@gmail.com wrote:
> > > My concern is to execute cvommand and access files in directory which > > > is on the > > > server. I want to execute those files from the local machine via ssh > > > and > > > for this i need to have a common key so that i dont have to keep making > > > different keys all the time > > > > > > If u have a solution or a cookbook kind of a thing for this please help > > > me <snip> Thanks to Ken and Nietzsche for their thoughtful replies. Just to add, should you are on windows OS, automating "putty" can be little daunting. You can get a fantasic cookbook sort of guide here at http://www.unixwiz.net/techtips/putty-openssh.html . It provides a full passwordless, agent-based access that requires no step in contrast to regular passworded access to system. "psftp" will help you for access files on remote system when agent in on the run. You can even automate the "passphrase" input including the sessions here. HTH -- Raqueeb Hassan Bangladesh |