LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-15-2005, 09:04 AM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
Setting up TTY's to ssh into another computer on boot?


I've got a cluster(6 machines), and it takes a little while to change to each console, log in, then ssh into these machines. Is there a way to change something so as to set the TTY's to automatically have the TTY's ssh into these other machines? Or is there something else that would allow me to do this?
 
Old 11-15-2005, 04:36 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I don't think you can do this and maintain any shred of security. However, if you don't care about security you might investigate setting up /etc/inittab to spawn ssh directly to your tty's instead of the normal getty's. You could also setup RSA authentication in ssh so that you wouldn't need to enter any passwords. But if you're willing to expose yourself so, might as well just use rlogin, .rhosts and/or hosts.equiv instead of ssh.

But like I said ... you would have no pretense of even minimal security with such a setup. I certainly wouldn't recommend doing what you're considering. No offense intended, but if you're using this to login to remote systems where you are not the sysadm, those remote sysadms would be well within their rights to smack you 'up side of the head!
 
Old 11-15-2005, 04:40 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
This is a personal cluster, on a private network. I am the sysadmin, and noone else other than me has access to these machines. I would be ssh'ing in as user, then su'ing to root(if needed). I just want a simple way to control these machines w/out needing a monitor and keyboard, or needing to take the time to login, then ssh in. Thanks for the concern though.
 
Old 11-15-2005, 04:47 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
OK. Good. I was incorrectly assuming you were in a work situation. Setting up something like that were I work would lead to, well, a "career altering experience".
 
Old 11-15-2005, 05:53 PM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
right, I understand that. I wouldn't do anything to compromise the security of any workplace. Currently, I'm a high school student, and did a independant study w/ the sysadmin at my old school. I understand the importance of network security. I've never messed with /etc/inittab before, what do I need to change about it?
 
Old 11-16-2005, 12:01 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I haven't messed with an inittab to do this type of stuff for many many years. (Normal inittab stuff, yes. Inittab to spawn an ssh process, no.) And that was not on Linux, but on some other Unix system (System V? HP-UX? I really can't remember). So instead of possibly leading you astray with my old knowledge, I'll point you towards others trying to do the same thing. I quickly glanced at the followups to this person's post, and the replies are right along the lines of what I was remembering.

http://lists.debian.org/debian-user/.../msg00407.html

One thing I would recommend though, is if you look at the followups at least one reply mentions changing inittab so it respawns a getty that in turn invokes ssh. For testing, I would change that "respawn" to "once" so that if it fails, it won't keep trying (and failing) over and over. Check out "man inittab" to see all the field meanings. Once you get ssh to behave as you want, then you can turn on respawn if you so desire. Be sure and backup your inittab file before you go hacking on it. A few typos here and there and you might be in a world of hurt! You might also consider changing your default booting runlevel to 1 (it's probably 2 now, Debian system default). Then you default boot to single-user mode and can manually move to your normal runlevel for testing with "telinit 2" (as root). So if you royally screw the pooch and nuke runlevel 2 by accident, you can just reboot and you'll be back in single-user mode and can fix inittab. Hopefully.
 
  


Reply



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
forwarding ssh->vnc through 1 computer disorderly Linux - General 1 10-06-2005 02:43 PM
trying to ssh to my home computer bwoodwar Linux - Newbie 2 09-15-2005 10:20 AM
SSH-ing to computer behind router ar1 Linux - Networking 1 01-09-2005 10:15 PM
computer stays for five minutes at boot! (setting up local disks) Falafel Fedora 1 03-31-2004 11:35 AM
Why I can estalish connection between 2 computer via SSH? huangyanfeng Linux - Software 3 03-05-2004 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:06 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
Open Source Consulting | Domain Registration