automate file access on server using SSH and passwordless access

automate file access on server using SSH and passwordless access

Post by jenilcme.. » Sat, 05 Aug 2006 02:34:46



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

 
 
 

automate file access on server using SSH and passwordless access

Post by highvoltage2.. » Sat, 05 Aug 2006 10:30:52


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>

 
 
 

automate file access on server using SSH and passwordless access

Post by Nietzsch » Sat, 05 Aug 2006 11:56:22



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

 
 
 

automate file access on server using SSH and passwordless access

Post by Ken Robert » Sat, 05 Aug 2006 12:02:51




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

 
 
 

automate file access on server using SSH and passwordless access

Post by Raqueeb Hassa » Tue, 08 Aug 2006 02:58:51



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

 
 
 

1. Using Linux to access a Terminal Server - How to get local floppy access?

I'm using RH7.2.  I've added Autologin and RDesktop.  Autologin logs
the system in in runlevel 5, and the .Xclients file calls RDESKTOP and
forces an auto-login to a Win2K Terminal Server.  This all works
great.  I wrote a script to force the hostname to be the MAC address,
sans colons.  Now I am going to share out the floppy and CDROM drives
via Samba, and force the Win2K environment to map them via
\\%machinename%\cdrom, etc.

has anyone tried this before?  Anyone have any thoughts/suggestions?
Any feedback at all is greatly appreciated.

Thanks

Jonathan

2. SCSI tape driver (st) does not read st.conf

3. File Access - Does Owner Access Override Group Access?

4. Module loading problems....

5. How can I denied users to access my server using SSH?

6. NetWare Conflict

7. How to stop users access the server using SSH?

8. NEWBIE: where are display resolutions??

9. How can I denied users to access my server using SSH?

10. Is it possible to access a server's access log from another server?

11. how to enable passwordless access for rsh rcp

12. File corruption accessing files on a large-file-enabled fs using RM-Cobol

13. Problem with HTTPd directory access using IE4 (access.conf or .htaccess)