LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2008, 11:46 PM   #1
sk_brahma2008
LQ Newbie
 
Registered: Jun 2008
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
Invoking a programme on a remote machine, bypassing the unix authentication process.`


I am using SunOS5.6 both on my local and remote machine. I wanted to invoke a script on my remote machine bypassing the remote machines authentication. I want to bypass the default authentication because my script on the remote machine has the customized login screen and it will authenticate the user. So i dont want the user to go through 2 round of authentication(once for default authentication and another for application authentication). How can i achieve this. Also after the execution of the script on remote machine is completed, i want to come back to my local machine. How do i do this.
 
Old 07-01-2008, 01:19 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
You would probably need to find a remote root exploit for this.
I dont think there is a way you could do this unless you remove the authentication yourself for everyone.

On the other side, it wouldnt be so tough to build a program to do multiple logins for you. Give that a try.
 
Old 07-01-2008, 03:59 AM   #3
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
Hi,
You can use SSH to connect to the remote machine and add the DSA or RSA key to the authorized_keys file so you won't need to type your password every time you connect:

Code:
ssh-keygen -t dsa 
sftp user@server
[enter password]
sftp> cd .ssh
sftp> put id_dsa.pub
sftp> exit
ssh user@server
[enter password]
user@server# cd .ssh
user@server# cat id_dsa.pub >> authorized_keys
user@server# exit
ssh user@server
[no need of any password]
And if you need to execute an X app on server but control it on the local machine, do:
Code:
ssh -X user@server
And if you want to execute an script directly:
Code:
ssh -X user@server /path/to/script
Have fun!!
emi
 
Old 07-01-2008, 06:17 AM   #4
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
Are you using telnet? If that's true, in my opinion, it's a huge lack of security...
To do that you'll need ssh daemon to be running. Once installed, authorized_keys is at /home/user/.ssh/ .
An advice: once you've created the key, rename the public key to something similar to id_dsa.user@machine.pub so you don't overwrite other keys.

emi

Last edited by emi_ramo; 07-01-2008 at 06:19 AM.
 
Old 07-01-2008, 06:18 AM   #5
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
(duplicated post)

Last edited by emi_ramo; 07-01-2008 at 06:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does it have a way to look at the process in remote machine williamhomanchun Linux - General 5 04-17-2008 07:18 PM
script to monitor process on remote machine kencha Linux - Newbie 6 01-07-2005 12:07 PM
ssh to initiate process on remote machine jdarren Linux - Networking 3 03-23-2004 05:55 PM
Invoking NT Domain user authentication for restricted web pages explorer Linux - Networking 1 10-08-2003 05:19 AM
SQUID Customized Authentication Programme ritesh_aladdin Linux - Networking 0 07-25-2003 02:21 AM


All times are GMT -5. The time now is 12:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration