LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-13-2010, 03:47 PM   #1
Noodlez910
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Rep: Reputation: 0
Get past login screen


I am trying to create a script that I can save on the desktop of my Primary computer and have it log in (get past the log in screen on the remote computers, and the banner) to multiple computers with the same user name and password in a LAN that is not connected to the internet.

I am also trying to create a script that starts a script on the desktop of these remote machines ON the remote machines, but I think I am on the verge of figuring that one out with the "expect" command in a script.
 
Old 04-13-2010, 03:50 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Setup keyless ssh access to the hosts and simply 'ssh user@ip', its pretty simple. You could screen the processes or a variety of other ways to make them individually accessible.
 
Old 04-13-2010, 04:01 PM   #3
Noodlez910
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Original Poster
Rep: Reputation: 0
That would let me log in through SSH without having to enter a password, but the login screen on the remote computers are still there (it does not log in ON the remote computer)
 
Old 04-13-2010, 05:22 PM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
So you're connecting to the xserver not the ssh daemon? You could use vnc and make a credentials file or something similar.
 
Old 04-13-2010, 11:36 PM   #5
Noodlez910
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry, I am currently taking a Linux class. Xserver is the graphical interface, right? So SSH Daemon is the command line interface?

I wanted to try and do this through scripting because I thought it would be easier to setup one shortcut to execute what I am trying to do rather than a GUI type program.

Is this even possible to do, or will I have to use a separate program like VNC?
 
Old 04-16-2010, 10:58 PM   #6
Noodlez910
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry to bring this back up again but I am stumped on this. I can't find a command that will get the remote computers past the log in screen or a command that will execute something on the remote computer without it actually trying to execute it on the machine I am currently at.
 
Old 04-21-2010, 05:41 PM   #7
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
What do you mean by the login screen specifically? Are you talking xdm? gdm? console? kdm? wdm? vnc? citrix? something else? Executing a command on a remote host is easy enough with a terminal services client or via ssh.
Code:
ssh un@host command
eg:

Code:
rweaver@wicked:~$ ssh rweaver@core ls -l
rweaver@core's password:
total 9
drwx------ 5 rweaver rweaver 4096 2008-12-07 18:51 Maildir
-rwx------ 1 rweaver rweaver   67 2010-04-13 11:22 script2.sh
-rwx------ 1 rweaver rweaver   53 2010-04-13 11:18 script.sh
rweaver@wicked:~$ ssh rweaver@core id\; hostname
rweaver@core's password:
uid=1011(rweaver) gid=1011(rweaver) groups=1011(rweaver)
core
rweaver@wicked:~$
 
Old 04-22-2010, 04:54 PM   #8
Noodlez910
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Original Poster
Rep: Reputation: 0
The graphical interface in CentOS that prompts for a username than password than shows the banner you have to click "ok" to.

As far as executing a shortcut on the remote computers desktop on that machine. I SSH into the remote computer than do a
cd /home/user/Desktop
./trying_to_run_this
than the script executes on my local machine rather than the remote one.
 
Old 04-22-2010, 07:35 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Examples here http://bashcurescancer.com/run_remot..._with_ssh.html. You need single quotes and possibly '&&' eg
Code:
cd /home/user/Desktop && ./trying_to_run_this

OR 

/home/user/Desktop/trying_to_run_this
Better yet, for multiple cmds, create all the remote cmds in a shell script on remote box and call remote script eg
Code:
ssh user@remote '/dir/dir2/script.sh'
 
Old 04-28-2010, 10:28 AM   #10
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Unless you're exporting the display to your local machine the script executed over a ssh connection will not execute on your machine and even in the case of exporting the display it will not execute on your machine it will just display there.
 
Old 04-29-2010, 08:15 AM   #11
Noodlez910
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Original Poster
Rep: Reputation: 0
That may be what is happening because once I execute the script the output or display tries to come up on the local machine instead of the remote machine. Is there a switch or command to have the output/display happen on the remote machine instead of the local machine?
 
Old 04-29-2010, 10:55 AM   #12
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
You need to export your display to the correct location you want it displayed at, for example: export DISPLAY=:0.0
 
  


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
Can't get Mandriva to get past login screen?? Erik765 Mandriva 6 12-29-2008 05:11 AM
Can't get past Ubuntu login screen... cautious Ubuntu 21 12-29-2008 04:55 AM
Can't get past login screen ChristopherJ Linux - Newbie 2 12-23-2008 02:41 PM
Can't get past login screen plind Mandriva 2 02-20-2007 11:04 AM
Can't get past login screen for new SuSE 9.2 Installation smakinen Linux - Laptop and Netbook 0 05-17-2005 10:44 AM


All times are GMT -5. The time now is 10:13 AM.

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