f



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

0
8/3/2006 5:34:46 PM
comp.os.linux.networking 15677 articles. 0 followers. Post Follow

4 Replies
765 Views

Similar Articles

[PageSpeed] 27

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>

0
8/4/2006 1:30:52 AM
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.

0
sc00b123 (56)
8/4/2006 2:56:22 AM
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?

0
forums9861 (27)
8/4/2006 3:02:51 AM
> > 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

0
wideangle (197)
8/6/2006 5:58:51 PM
Reply:

Similar Artilces:

Linux workstation to Linux Server file access???
Gentlemen; Previously I've run Samba on my linux servers to allow access from my Windoze desktops. This worked with limitations but was usable. Now I've replaced many of my desktops with Linux workstations and I have tried mounting the same samba shares successfully but I'm experiencing quite some difficulties with ownerships and permissions (especially permissions). My research and other groups are telling me that I should rely on *nix native network sharing (nsf?) to accomplish this. So, to attest to my ignorance on this issue, please explain if nsf is the preferred way to go AND how it should normally be mounted? I have servers and a nas device and I have been playing with variations of the mount -t nsf blah blah without any success. Please provide some mount examples or preferably how I could make an entry into my fstab file to automount these shares? Thanks millions. Bob On Sat, 10 Jun 2006 21:29:02 -0400, bobmct wrote: > Gentlemen; > > Previously I've run Samba on my linux servers to allow access from my > Windoze desktops. This worked with limitations but was usable. > > Now I've replaced many of my desktops with Linux workstations and I have > tried mounting the same samba shares successfully but I'm experiencing > quite some difficulties with ownerships and permissions (especially > permissions). > > My research and other groups are telling me that I should rely on *nix > native network sharing ...

Win2000 Server can access client but client cannot access server files.
Hi We're running 2000 Server feeding 4 PC's and two Macs. Last week I found one PC can no longer access files on the server whereas the server can access any files on that PC. I suppose it's a good sign that it is at least working in one direction. I just need to get it back to working both ways. Though I am very competent with stand alone PCs I'm not very experienced with networks. I'd very grateful of any suggestions regarding settings I should check that would re-connect the link of this PC to the server. If there are any web sites you can recommend for network ne...

Win2000 Server can access client but client cannot access server files.
Hi We're running 2000 Server feeding 4 PC's and two Macs. Last week I found one PC can no longer access files on the server whereas the server can access any files on that PC. I suppose it's a good sign that it is at least working in one direction. I just need to get it back to working both ways. Though I am very competent with stand alone PCs I'm not very experienced with networks. I'd very grateful of any suggestions regarding settings I should check that would re-connect the link of this PC to the server. If there are any web sites you can recommend for network ne...

slow access using access 2007 on client/server
Hello all, I had this e-mail today from a user, and would like to get some ideas to pass along. Many thanks, all! Andy " my program is very very slow when more than two people are using the program. The database is installed on a desktop, which is about two years old. I am connecting with a Using Acer note book Intel Pentium-M 760 Processor 2GHz plus 2GB. However, when the database is install on the note book it runs very fast. However, if it's installed on the desktop , then it's painfully slow. Also, I have to ask my collegue to close is program before I can ope...

Accessing Access
Hello, what would be a good module for accessing data contained in a MS Access database file? Are there any examples of doing this that you know of? In article <nn1Ah.2617$2%1.2205@trndny02>, <QoS@domain.invalid.com> wrote: > >Hello, what would be a good module for accessing data contained in >a MS Access database file? Are there any examples of doing this >that you know of? Depends what kind of platform you can use. If you are under Windows, DBD::ODBC will work wonders. If you `bridge' Windows <-> Unix, you can set up a DBI::ProxyServer on a windows...

access to Access
We use MS access 2000 at work and few people know how to work it including me. We are using it on a network and more than one person is trying to access it at once. Needless to say this isn't working as one has to log out first before another can enter data. Is there an easy way around this? Or a complicated way, actually I'll take anyway. Thanks Mike We have just started this database so any changes would be better done sooner. Mike Kelliher wrote: > We use MS access 2000 at work and few people know how to work it > including me. > We are using it on a network and mo...

Linux Server - Dial up
Organization: PEL Supply CompanyDate: Thu, 24 Jul 2003 08:12:12 -0400 I am a newbie to linux so please be kind. I need to setup a redhat box so that i can dial into the server from a windows PC. I then need to be able to access and use the resources of the windows network that the linux server resides on. Browse the other workstations, get my email by using the networks internet connection, ect... If anyone can point me in the direction of some howto's or some information i would be greatly appreciatiev. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2 ...

access control for networked file server
Dear all, I am writing a user-level networked file system with a user-level networked file server. My server simply receives requests from its clients over TCP and performs the necessary requested operations on the files stored locally at the server. Right now the server is not run as root, but it can be, if necessary. I want to add support for POSIX ACL to the server and I am not able to figure out what would be the best way to do it. Mainly because there are seem to be two levels of access control that I need to manage a) file server should verify if the user has the access rights, and b...

Network access OK but server cannot use internet
Ok hoping someone can help me, I have little hair left after this one... I have a home network set up with a Redhat 8 box and 3 client PCs. The redhat box has eth0 connected to the cable modem for Internet and eth1 as the LAN which goes to a hub. I have IP tables setup for NAT with Masquerading and forwards are accepted from eth1. Inputs are also always accepted from eth1. Output policy is ACCEPT, except for netbios stuff on eth0 which is dropped. The problem is that client machines can use the internet no problem through the server, but the server can not use the internet itself?!? Pages ...

accessing access DBs over network
I have a small office (in a workgroup environment not a domain) that has a number of DBs that reside on one XP PC and shared for everyone to use. All users have mapped drives to this share and when they tried to open a DB they got the message: "The file is located outside your intranet on an untrusted site. MS access will not open the file due to potential security problems." So I went into IE,intranet options, secutiy tab, and added that XP PC (\\ fileserver)to the trusted sites list. i did this for each PC in the office. Now when users try to open a DB they get the error messa...

accessing a pdf file present on linux os on windows
i want to create some user who can login and access files and tutorials that i keep on my server(linux,samba).i want to have all the logging details .i want that they can access the tutorials from anywhere, anytime.how can they access pdf and other files in this manner.its very urgent.let me know. deepak <thats_daa_magic@yahoo.com> wrote: > .i want that they can access the tutorials from > anywhere, anytime.how Install Apache on the Linux machine and provide the documents as web pages (html) or pdf to view online. It's the easyest way. Davide -- | Trying to get Windows to...

Accessing dynamically multiple VNC servers using SSH
Hello, I have the following networksituation: A->VNCViewer->SSH Cl.- -> VNC Server 1 � | B->VNCViewer->SSH Cl-�->Internet->SSH --|> VNC Server 2 � Server | C->VNCViewer->SSH Cl.- -> VNC Server 3 Now I would like to connect from A with my VNC Viewer over SSH to one of the three VNC Server. This can be done by portforwarding. -L 5901:server1:5900 -L 5902:server2:5900 -L 5903:server3:5900 To access from A to Server 1 I have to connect to localhost:1 on client A. Till now fine. But wat I'm looking for is to manage the following scenario: Client A connects over the SSH Client to the SSH Server. The SSH server looks which port he already has forwarded. Because A is the first Client who wants to access a VNC Server, SHH forwars it for example to VNC Server 1. Now client C wants to connect to a VNC Server. C connects over the SSH client to the SSH Server. The SSH Server notice, that already someone is forwarded to VNC Server 1 thus the SSH Server forwards the client C to the VNC Server 2. And so on.... One important thing, each client (A,B,C) has a dynamic IP. Does someone have an idea how to solve this? Maybe I need some kind of proxy? Thanks for your help, Sven In article <40878c1f$1_3@news.bluewin.ch>, Sven Hubschmid <shubschmid@student.ethz.ch_delete_me> wrote: >I have the following networksitu...

Using Access MDB on a Linux Web-Server possible?
Hi, I want to use my Access 2003 mdb on linux with an apache web-server. My Web-Editor is NOF8/9. Is this possible? Many thanks! Steven Steven Munlo wrote: > Hi, > > I want to use my Access 2003 mdb on linux with an apache web-server. > My Web-Editor is NOF8/9. Is this possible? Many thanks! I had a client that wanted to put a data file on a Linux file server... it would only work if some update was applied. They ended up keeping it on a Windows box though. Sorry, don't know more than that. It is possible AFAIK. -- regards, Br@dley Why? You can host on a Windows ...

Automating Mail Merge from Access using xls file as datasource
I wrote the following code: DoCmd.OutputTo acOutputTable, "tmpWorkSheet", acFormatXLS, "C:\WS.xls", False, "" Set oWordDoc = CreateObject("Word.Application") oWordDoc.Application.Visible = True 'open word document oWordDoc.Application.Documents.Open "C:\TESAOD_1.doc" 'assign datasource With oWordDoc.Application.ActiveDocument.MailMerge .MainDocumentType = 0 .OpenDataSource Name:="C:\WS.xls", Linktosource:=True, _ Connection:="tmpworksheet" .Desti...

Fresh SQL Server 2005 giving problem in accessing access 97 file through Jet Ole DB Provider
Problem:Jet 4.0 Ole DB Provider stops working the momemt SQL 2005 server is installed. Environmental steps: 1.Installed XP Sp2 2.Installed SQL 2005 Server with SP1 3.Trying to import data from an access 97 file Actual problem:The linked server gets created but when try to read data we get attached error The problem displayed is following [02/19/07 18:24:47]: Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "MGMTREPORTS". OLE DB provider "Microsoft.Jet.OLEDB.4.0" for li...

Use a redhat enterprise machine as Remote Access server for Win2K network?
Hi all, We need to replace our ageing Windows-based remote access server. This machine currently has an Eicon DivaServer 4/8 port ISDN/PSTN RAS card and uses the Windows Routing and Remote Access Service (RRAS) to route the network traffic in from the Eicon card thru it's network interface onto the rest of the LAN here. It uses RADIUS to communicate the authentication details between the connecting client and the Active Directory servers. I'd like to use a RedHat machine to provide this functionality rather than a Windows box and wondered if: 1) is this possible (sure it must be) 2) what software I need on the machine in order to achieve this? The RADIUS on the RH Enterprise machine would be a client of the RADIUS service provided by the primary Active Directory authentication server, I guess routing would be handled by complex sets of 'route' commands unless there's some Linux equivalent of Windows RRAS? If anyone has such a scenario or can envisage how it would go together I'd really appereciate hearing about it! TIA, Niall ...

cannot access any file when using sshfs mount a directory in windows sftp server
I will appreciate if someone can help me out of this: I am running a sftp server on windows XP ( I have tried both freesshd and "Core FTP mini-sftp-server"). I use sshfs on gentoo linux to mount a directory from the sftp server. Here is the command: $sshfs user@windows_box_ip: /mnt/sftp/ Everything works fine so far, and the sftp server is mounted. But when I run $ls -al /mnt/sftp It shows: ========================================= ls: cannot access /mnt/sftp/test.log: Input/output error .... drwxrwxrwx 1 root root 8 Dec 31 1969 . drwxr-xr-x 7 root root 4096 Sep 19 04:51 .. drw-rw-rw- 1 root root 0 Sep 5 15:27 Temp drw-rw-rw- 1 root root 0 Sep 18 14:50 USB_HANDY_TOOL drw-rw-rw- 1 root root 0 Aug 28 16:07 WorkNoteBook drw-rw-rw- 1 root root 0 Sep 5 10:10 development ?????????? ? ? ? ? ? test.log =========================================== Basically all files are not accessible in this case, which makes the mount meaningless. I guess it may related to windows file permission setting is not understood by linux machine, but same thing happens to the directory in FAT and FAT32 partition. Also network mounting should hide the details of those filesystem inplementation specific issues. Can anyone tell me how to solve this? Thanks. ...

A Failure in using FTP to access a remote file on a Linux host machine.
/* Hi all, Goal: >From a local SAS session on a Windows platform, read an external file stored on a remote host system (Linux) without downloading the external file, but by using the FTP. The external file EXAMPLE6_1.TXT looks like this: 2393834873Keen, Kerry Genetics 2003 2836183495Lindsay, Nancy Microbiology 2004 2838378510Lee, Lois Genetics 2004 2903895839Carlson, Gina Cell Biology 2005 2918387281Rhodes, Richard Cell Biology 2004 2938281731Woski, Donna Genetics 2004 3293832921Anderson, Robert ...

Networked two linux computers, can't access files across?
I have two linux computers networked. I have the Internet configurations working OK, but I need to share files between two, I restarted nfs, and mounted on other machine, still can't access. Do I have to enable anything else?. Appreciated for any info. Thanks, GS. GS <globalswamy@hotmail.com> wrote: > I restarted nfs, and mounted on other machine, still can't access. I don't think this is a useful sentence. * You've started NFS on one (both?) of the boxes? * Do you have one configured as a server and the other as a client? * Have you put anything in /etc/exports on the server? * Have you successfullly exported a share on one of the boxes and successfully mounted it on the other? * What's the real problem that you're having? Puzzled, Chris GS wrote: > I have two linux computers networked. I have the Internet > configurations working OK, but I need to share files between two, I > restarted nfs, and mounted on other machine, still can't access. Do I > have to enable anything else?. Appreciated for any info. > > Thanks, > GS. > look here: http://nfs.sourceforge.net/nfs-howto/ ...

Can't access winxp (unicode) files from linux FTP server...
I'm looking to replace a NT4 server box with a gentoo installation - pretty much all services (apache/php/mysql/samba) are working well, with the exception of proftpd. Files placed on the server over smb from windows clients sometimes contain accents and other non-ASCII characters, which I didn't have problems with when using WarFTPD with NT4. ProFTPD, however, isn't liking the unicode filenames. I've read through the gentoo guides without much luck (setting locales to UTF-8, etc). On the user level, I can still only view unicode filenames correctly after logging into the console as root and running unicode_start, despite having a UTF-8 locale. I have a feeling that I need to do this globally for all running processes in order to make proftpd work with unicode, but no idea how. At this point, using a windows ftp client to access proftpd will result in a correct display of filenames - proftpd seems to be sending the client the filename exactly as it is on disc, so the windows client correctly displays the accents, etc. Attempting to access the file is another matter - the windows client sends a request to access the filename and proftpd doesn't recognize it at all. Is there any way for proftpd to work with these files, or any linux FTP daemon? The sad alternative is to upgrade the hardware and use windows 2003 server, but surely this is something that Linux is capable of.... Thanks, Nikhil NikhilC <taligentx@hotmail.com> wrote: > Files plac...

accessing an OLE Automation (IDispatch) server from python which requires the use of "out params"
I have an existing Windows application which provides an OLE Automation (ID= ispatch) interface. I'm not able to change that interface. I'd like to ca= ll it from a scripting language. I figure this would provide a nice quick = way to invoke on the app. I initially tried this with Windows Powershell but ran into the following p= roblem. I was able to create the object and invoke simple methods on it. = However the interface for this app has methods which take out params. i.e.= you pass in a reference to a variable and the server fills in the value. = I couldn't get that to work. I finally gave up and decided it was just a l= imitation of Powershell, not being able to work with those out params. My next thought was to do it in python. I've been reading up on python and= I've found a decent amount of into out there on doing OLE and I'm optimist= ic. But, I thought that I'd ask the question before digging too much farth= er into it... When calling an OLE Automation (IDispatch) server from python can I make us= e of "out params" defined by the interface? To get more specific, here's an example from the server's IDL for one of it= s methods. [id(15), helpstring("method GetSettingValue")] VARIANT_BOOL GetSettingValue= (BSTR settingName, BSTR* settingValue); As you can see, you have to pass in an out param for settingValue. The ser= ver fills this in for you. And this is what I cou...

MultiUser File Access using MS COBOL Version 2.20 on Windows Server
Our company wants to upgrade from a Novel Client network to a pure windows server. Unfortunately multi user indexed file access stops working on our legacy software: (DOS COBOL.EXE - Microsoft COBOL Compiler Version 2.20 (C)Copyright Microsoft Corp. 1982-87), which runs under ISAM: (NISAM.EXE - MS-ISAM (C) Copyright 1984, 1987 by Microsoft Corp Version 3.12) Is there a newer NISAM.EXE out there that might work? We dont want to upgrade the complier itself too far or we will have to convert all our existing code (which will be rewritten again in c# sometime after we are on the windows server)....

Clipper Application under Windows 7 performing Slow in Indexing / Accessing Dbf files from a Network Server
Dear Group: My Clipper Applications runs on a network. The EXE is located in each clien= t's system and executed from there. The Dbf files are located on a shared d= rive of a Novell Server. The setup is: Client side (20-25 users): Have Windows XP and Windows 98(a couple of them.= ...) systems.=20 Server: Novell Server Netware5 running on Pentium PIII (yes PIII). This ver= sion of Novell Server perhaps won't run on modern configurations. Network: All systems connected to the novell server netware5 via LAN setup. The Issue: May I clear it first that, the existing C...

Not able to access network drive file using CGI/Perl running with Apache 2.2
Hi, I have a script to read a excel file from remote disk which is mapped on the server. when i run the perl script it connects to the drive and reads the data from the excel file but when i run with CGI it shows the below error --------------------------------------------------------------------------------------------------------------------------------------------------------------- Software error: OLE exception from "Microsoft Office Excel": 'Q:\dir1\dir2\file1.xls' could not be found. Check the spelling of the file name, and verify that the file location...

Web resources about - automate file access on server using SSH and passwordless access - comp.os.linux.networking

Google experiments with hardware-based authentication, envisions passwordless future
2012 was not a great year for security. From the " epic hack " of Wired's Mat Honan to the breach of Dropbox and the breakdown of barriers at ...

NIST Testing out Passwordless Smart Home
The agency has awarded a $1.86 million grant to save consumers from \"password fatigue.\"

Accidental Tech (@atpfm) on Twitter
Sign in Sign up You are on Twitter Mobile because you are using an old version of Internet Explorer. Learn more here Accidental Tech @ atpfm ...

Cyberoam Releases its Security Predictions for 2015
CMO Australia addresses the unique marketing, technology and leadership challenges chief marketers face as they look to align their own practices ...

Cyberoam Releases its Security Predictions for 2015
CSO Australia - News, Industry Blogs, Tools and Resources for Data Security Executives

Openbsd
Main menu BASH Shell Linux CentOS Debian / Ubuntu Ubuntu Linux Suse RedHat and Friends Slackware Linux UNIX AIX Mac os x FreeBSD FreeBSD Jails ...

Bolt Blog
Bolt Blog Home Archive Bolt.co All Posts (4) Bolt Version 1.0 February 10, 2014 Passwordless Products January 28, 2014 Building the Bolt Blog ...

Microsoft joins FIDO group hoping to replace passwords with public key cryptography
Microsoft has joined the board of directors of the FIDO ("Fast IDentity Online") Alliance, an industry consortium that is attempting to create ...

Lindsay Lohan Lost a Laptop with Lots of Naked Pics
So we were going to post this yesterday but assumed it was just a rumor because what celebrity is dull enough to leave their computer, passwordless ...

SSH - Voodoo Programming
Personal home page of Constantinos Neophytou from Cyprus, Computer Science graduate from Dartmouth College and Master's student at Bristol University, ...

Resources last updated: 3/14/2016 8:49:49 AM