473,382 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

access to another server

How can i run a command to another server?

Example:

from

rc1: /m/home/coax

then i want to command "ls -ltr" to another server (different IP address) which is the

rc2:/m/home/coax/


Can I use the RCP?


Thanks.

-coax
Jun 14 '07 #1
7 3714
arne
315 Expert 100+
How can i run a command to another server?

Example:

from

rc1: /m/home/coax

then i want to command "ls -ltr" to another server (different IP address) which is the

rc2:/m/home/coax/


Can I use the RCP?


Thanks.

-coax
Try ssh:
Expand|Select|Wrap|Line Numbers
  1. ssh coax@rc2 'ls -lrt /m/home/coax/'
  2.  
assuming your user name is coax and the remote machine's name is rc2.

HTH,
arne
Jun 14 '07 #2
Sir,

How about without asking for a password?

Thanks Again.
Jun 14 '07 #3
arne
315 Expert 100+
Sir,

How about without asking for a password?

Thanks Again.
Have a look at Public-Key Authentication for SSH (just google for 'ssh no password' and you will find a lot of tutorials how to set that up).

If the machines is trustworthy, you can also use rsh instead of ssh, google for 'rsh no password'.

I would recommend to have a look at the SSH solution, however.

HTH,
arne
Jun 15 '07 #4
Sir,
What should I do if the authorized_keys is not present in the folder .ssh2?

We're using 4 servers. But only in one server this 'authorized_keys' is existed.

Thanks.
Jun 15 '07 #5
arne
315 Expert 100+
Sir,
What should I do if the authorized_keys is not present in the folder .ssh2?

We're using 4 servers. But only in one server this 'authorized_keys' is existed.

Thanks.
You can simply create it.

arne
Jun 15 '07 #6
Do you mean I can simply 'touch authorized_keys'.. and then that's it?

After I created the file I can just append the id_rsa.pub?


Thanks Very Much.
Jun 15 '07 #7
arne
315 Expert 100+
Do you mean I can simply 'touch authorized_keys'.. and then that's it?

After I created the file I can just append the id_rsa.pub?


Thanks Very Much.
Yes, that should do it.

You may want to try that with one of your servers first before changing all of them :-)

arne
Jun 16 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: cooldv | last post by:
i am running a website on Windows 2000 server with ASP 3 webpages and Access 2000 database. (with a hosting company) traffic is slow at this time but expect to grow. lately i have been reading...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
4
by: Ian | last post by:
Can anyone help I have a web server on the internet with and ASP.NET application on it, the application is set to allow Anonymous Access and Integrated Windows. The Web.config is set to use...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
35
by: robert d via AccessMonster.com | last post by:
I was asked to provide a proposal. I provided a proposal on my application and the prospective client likes what I have but is wary of it having been developed in Access. I don't understand this...
5
by: B1ackwater | last post by:
We've fooled around with Access a bit, but only using the single-user store-bought version. It seems to be a good database - versatile and infinitely programmable - and can apparently be used as a...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
10
by: rcnews | last post by:
Hi, First timer here. Where's the best place to educate myself on how to use PHP in conjunction with Microsoft Access--good online tutorials, sites, blogs, etc...? I work at a small online...
2
by: raylopez99 | last post by:
I am trying to program a database from inside C++.NET via Visual Studio 2005 using the ADO.NET set of classes, but this I believe is a SQL Server 2005 Express permissions question under Windows XP...
0
by: raylopez99 | last post by:
10 years ago, the below was written (see very end, after my signature RL). What, if anything, has changed? I have Access 2003 and soon Access 2007 on a Windows XP Professional or Windows...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.