473,499 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

access to another server

60 New Member
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 3716
arne
315 Recognized Expert Contributor
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
coaxfiber
60 New Member
Sir,

How about without asking for a password?

Thanks Again.
Jun 14 '07 #3
arne
315 Recognized Expert Contributor
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
coaxfiber
60 New Member
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 Recognized Expert Contributor
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
coaxfiber
60 New Member
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 Recognized Expert Contributor
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
3336
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
14278
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
2665
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
3066
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
2510
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
2897
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
3813
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
422
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
6199
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
2685
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
7130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7386
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.