Networking Forums

Networking Forums > Computer Networking > Linux Networking > automate file access on server using SSH and passwordless access

Reply
Thread Tools Display Modes

automate file access on server using SSH and passwordless access

 
 
jenilcmehta@gmail.com
Guest
Posts: n/a

 
      08-03-2006, 05:34 PM
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
 
 
 
 
highvoltage2323@yahoo.com
Guest
Posts: n/a

 
      08-04-2006, 01:30 AM
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
 
Nietzsche
Guest
Posts: n/a

 
      08-04-2006, 02:56 AM
(E-Mail Removed) 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
 
Ken Roberts
Guest
Posts: n/a

 
      08-04-2006, 03:02 AM

Nietzsche wrote:
> (E-Mail Removed) 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
 
Raqueeb Hassan
Guest
Posts: n/a

 
      08-06-2006, 05:58 PM
> > (E-Mail Removed) 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice - Guest wireless internet access without file access Netorius77 Wireless Networks 1 05-04-2008 01:48 AM
File server access logging Henrik Johansson Windows Networking 0 03-30-2008 02:01 PM
New Windows Server file access is SLOW J. Bryan Wehrenberg Windows Networking 10 09-25-2007 08:25 PM
slow network file access on 2k3 sp1 and sp2 R2 server JimK Windows Networking 2 08-27-2007 08:38 PM
File access problems on server 2003 thinice Windows Networking 0 11-09-2004 12:43 AM



1 2 3 4 5 6 7 8 9 10 11