automate file access on server using SSH and passwordless access

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-03-2006
jenilcmehta@gmail.com
 
Posts: n/a
Default automate file access on server using SSH and passwordless access

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

Reply With Quote
  #2 (permalink)  
Old 08-04-2006
highvoltage2323@yahoo.com
 
Posts: n/a
Default Re: automate file access on server using SSH and passwordless access

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>

Reply With Quote
  #3 (permalink)  
Old 08-04-2006
Nietzsche
 
Posts: n/a
Default Re: automate file access on server using SSH and passwordless access

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.

Reply With Quote
  #4 (permalink)  
Old 08-04-2006
Ken Roberts
 
Posts: n/a
Default Re: automate file access on server using SSH and passwordless access


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?

Reply With Quote
  #5 (permalink)  
Old 08-06-2006
Raqueeb Hassan
 
Posts: n/a
Default Re: automate file access on server using SSH and passwordless access

> > 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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0