Networking Forums

Networking Forums > Computer Networking > Linux Networking > Remote Connection to Linux

Reply
Thread Tools Display Modes

Remote Connection to Linux

 
 
rajattyagi12@yahoo.com
Guest
Posts: n/a

 
      08-12-2003, 06:07 AM
Hi,
I am writing a program that requires to connect to remote Linux
machines and execute a program after authentication. This connection
has to be initiated by the program. The program needs to copy a few
files also.
Is it possible to do this without running a seperate server program.
or using some service that is already running on the Linux systems.
The copying needs to be done securely sometimes. Although this is not
a concern at this moment.
Any pointers on the possiblilty i can explore would be helpful.
Thanks
-Rajat
 
Reply With Quote
 
 
 
 
Timo Voipio
Guest
Posts: n/a

 
      08-12-2003, 06:23 AM
(E-Mail Removed) wrote:

> I am writing a program that requires to connect to remote Linux
> machines and execute a program after authentication. This connection
> has to be initiated by the program. The program needs to copy a few
> files also.


Keyword: ssh. Plenty of source out there to explore.

-Timo

--
Timo Voipio | Helsinki, Finland | ICBM at: 60 11.800 N 024 52.760 E
GeekCode ver 3: GU>CC d s-: a--- C++ UL(+)$>+++$ P+>+++ L++(+) E- W++ N++
o? K? w O M- V- PS PE Y+ PGP+ t 5++ X R tv- b++(++++) DI+ D G e- h! r !y
Remove +newsharvested to e-mail me | Poista +newsharvested jos meilaat

 
Reply With Quote
 
rajattyagi12@yahoo.com
Guest
Posts: n/a

 
      08-12-2003, 11:54 AM
Timo Voipio <tvoipio+(E-Mail Removed)> wrote in message news:<bha15g$vfifl$(E-Mail Removed)>...
> (E-Mail Removed) wrote:
>
> > I am writing a program that requires to connect to remote Linux
> > machines and execute a program after authentication. This connection
> > has to be initiated by the program. The program needs to copy a few
> > files also.

>
> Keyword: ssh. Plenty of source out there to explore.
>
> -Timo


Is it possible to do this without running a seperate server program??
 
Reply With Quote
 
Bev A. Kupf
Guest
Posts: n/a

 
      08-12-2003, 12:09 PM
On 12 Aug 2003 04:54:35 -0700,
(E-Mail Removed) ((E-Mail Removed)) wrote:
> Timo Voipio <tvoipio+(E-Mail Removed)> wrote in message news:<bha15g$vfifl$(E-Mail Removed)>...
>> (E-Mail Removed) wrote:
>>
>> > I am writing a program that requires to connect to remote Linux
>> > machines and execute a program after authentication. This connection
>> > has to be initiated by the program. The program needs to copy a few
>> > files also.

>>
>> Keyword: ssh. Plenty of source out there to explore.
>>
>> -Timo

>
> Is it possible to do this without running a seperate server program??


No transaction is possible without a server at one end and a client at
the other. You do understand that a server program (daemon) has to be
running (listening) for incoming connections from your client.

ssh is installed by default on most Linux distributions that I know of.
It would be a simple and secure way for you to achieve your goal.

A less secure way would be to use "rsh" and enable "rshd" on the Linux box.

Bev
--
Bev A. Kupf
"The lyfe so short, the craft so long to lerne" -- Chaucer
 
Reply With Quote
 
Xyerp
Guest
Posts: n/a

 
      08-12-2003, 01:13 PM
(E-Mail Removed) wrote in message news:<(E-Mail Removed). com>...
> Hi,
> I am writing a program that requires to connect to remote Linux
> machines and execute a program after authentication. This connection
> has to be initiated by the program. The program needs to copy a few
> files also.
> Is it possible to do this without running a seperate server program.
> or using some service that is already running on the Linux systems.
> The copying needs to be done securely sometimes. Although this is not
> a concern at this moment.
> Any pointers on the possiblilty i can explore would be helpful.
> Thanks
> -Rajat


Take a look here:

http://www.openssh.org
 
Reply With Quote
 
Guest
Posts: n/a

 
      08-12-2003, 02:57 PM
In article <(E-Mail Removed) >,
<(E-Mail Removed)> wrote:

>Is it possible to do this without running a seperate server program.


Is there some reason you aren't using ssh for this?

--
 
Reply With Quote
 
David
Guest
Posts: n/a

 
      08-12-2003, 04:05 PM
(E-Mail Removed) wrote:
> Hi,
> I am writing a program that requires to connect to remote Linux
> machines and execute a program after authentication. This connection
> has to be initiated by the program. The program needs to copy a few
> files also.
> Is it possible to do this without running a seperate server program.
> or using some service that is already running on the Linux systems.
> The copying needs to be done securely sometimes. Although this is not
> a concern at this moment.
> Any pointers on the possiblilty i can explore would be helpful.
> Thanks
> -Rajat


Here is a good link that should be of help.

Secure Passwordless Logins with SSH
http://www.hackinglinuxexposed.com/a.../20021211.html

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.0 Kernel 2.4.21 i686 (GCC) 3.3
Uptime: 7 days, 12:51, 1 user, load average: 0.41, 0.23, 0.13

 
Reply With Quote
 
rajattyagi12@yahoo.com
Guest
Posts: n/a

 
      08-13-2003, 04:28 AM
David <(E-Mail Removed)> wrote in message news:<Af8_a.88656$cF.27900@rwcrnsc53>...
> (E-Mail Removed) wrote:
> > Hi,
> > I am writing a program that requires to connect to remote Linux
> > machines and execute a program after authentication. This connection
> > has to be initiated by the program. The program needs to copy a few
> > files also.
> > Is it possible to do this without running a seperate server program.
> > or using some service that is already running on the Linux systems.
> > The copying needs to be done securely sometimes. Although this is not
> > a concern at this moment.
> > Any pointers on the possiblilty i can explore would be helpful.
> > Thanks
> > -Rajat

>
> Here is a good link that should be of help.
>
> Secure Passwordless Logins with SSH
> http://www.hackinglinuxexposed.com/a.../20021211.html


Thanks i will explore the possibilities with ssh.
But still i have one question, what is the equivalent of connecting to
admin$ on a linux machine? Is samba required for accessing admin$. In
windows i could connect to admin$ without a server running, was it
running some service in the background.
 
Reply With Quote
 
Xyerp
Guest
Posts: n/a

 
      08-13-2003, 09:17 AM
(E-Mail Removed) wrote in message news:<(E-Mail Removed). com>...
> David <(E-Mail Removed)> wrote in message news:<Af8_a.88656$cF.27900@rwcrnsc53>...
> > (E-Mail Removed) wrote:
> > > Hi,
> > > I am writing a program that requires to connect to remote Linux
> > > machines and execute a program after authentication. This connection
> > > has to be initiated by the program. The program needs to copy a few
> > > files also.
> > > Is it possible to do this without running a seperate server program.
> > > or using some service that is already running on the Linux systems.
> > > The copying needs to be done securely sometimes. Although this is not
> > > a concern at this moment.
> > > Any pointers on the possiblilty i can explore would be helpful.
> > > Thanks
> > > -Rajat

> >
> > Here is a good link that should be of help.
> >
> > Secure Passwordless Logins with SSH
> > http://www.hackinglinuxexposed.com/a.../20021211.html

>
> Thanks i will explore the possibilities with ssh.
> But still i have one question, what is the equivalent of connecting to
> admin$ on a linux machine?


There isn't.

> Is samba required for accessing admin$.


Ask yourself - What IS admin$?

> In windows i could connect to admin$ without a server running,


I bet you can't. More likely you just aren't aware of what is running
on your closed-source windows box ;-)

> was it running some service in the background.


hehe.

What you need to do is ask yourself "what am I trying to achieve"? My
guess is that you can achieve everything you want by running as the
"root" user (like the "Administrator" user in Windows). UNIX is great
in that you can have multiple users logged in at the same time... to
one box... and in a normal environment there will be tens, maybe
hundreds of people logged in! This is /very/ strange to someone coming
from a Windows environment where remote access is so clumsy and
awkward. You'll love it

Take a look here as well, could be useful to you:

http://www.tldp.org
 
Reply With Quote
 
Xyerp
Guest
Posts: n/a

 
      08-13-2003, 04:39 PM
[snip]
> Alright ssh meets might requirements but i couldn't find any libraries
> that i can use to implement the functionality in my application. Is
> there any library that is free for commercial use, as the app will be
> used inside the company.
> Thanks


Erm? Where are you looking? Go here:

http://www.openssh.org
 
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
routing and remote access & remote desktop connection SJMP Windows Networking 1 10-22-2008 01:55 PM
remote into linux John A Grandy Windows Networking 1 09-13-2008 02:08 AM
Wireless connection to use a remote desktop connection Niall 84 Wireless Internet 0 03-26-2008 10:30 PM
A Strange - 421 Service not available, remote server has closed connection - problem for Linux ftp client. vince Linux Networking 0 03-09-2007 09:35 PM
remote desktop connection using vpn and dial up connection =?Utf-8?B?bW0=?= Windows Networking 5 11-17-2005 06:52 PM



1 2 3 4 5 6 7 8 9 10 11