LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-28-2008, 11:02 AM   #1
vtmckoy
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Question How to access my Linux Server when ssh is not working?


I'm doing a lot of fooling around with Linux at home--trying to prepare for job interviews. I am using an IBM ThinkCentre and I installed Fedora 8. When I do a "uname -a", I get the following:
Linux troyvnet 2.6.26.5-28.fc8 #1 SMP Sat Sep 20 09:32:58 EDT 2008 i686 i386 GNU/Linux.

I had a phone interview yesterday and he asked me how do I access my linux servers. I told him that I always use ssh (putty) from my desktop. He said they normally use an ssh client also. But, if the server is having issues and they can't use ssh or telnet to see what's going on, they would use the ethernet plug in the back of the boxes to gain access.

I just said oh, ok. But, I really did not know what he meant. Can anyone explain to me, in detail, the process to do this? I would like to test this out on my Linux server at home. I see one ethernet port in the back of the box; but how would I be connected to the network with that ethernet port and have to hook up some type of terminal or my laptop to actually see what's going on with the server? Do I need some type of ethernet adapter? Any ideas?

Thank you
 
Old 10-28-2008, 01:27 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Either he meant an isolated second ethernet port that wasn't protected or he meant to say a "serial" port. I suspect the latter. There are devices that are like KVMs but switch serial ports to allow remote access to terminals without being on site with a crash cart.

You can allow logins on a particular serial port. Look at the manpage for "securetty" or "login.defs" and "inittab".

By the way, why do you use putty and not an ssh client on a Linux machine?

If I had to use windows, I would prefer using Cygwin/X. Then you have the same ssh client as in Linux, and you can run a system-config gui program remotely, even if the server runs in init level 3. However, you do need some of the Xorg libraries installed for that which you may be unwilling to do on a server.
 
Old 10-28-2008, 08:56 PM   #3
vtmckoy
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Question

jschiwal: Thank you very much for your input.

I guess I'm still a little unclear on what I need to do. This is all new to me and I'm trying to simulate this scenario for my home Linux environment. Do I need to buy a serial port switch/box/cable and what do I need to connect to what? Can you point me to some type of documentation discussing this?

As far as putty, our laptops are supplied by our job with specific software on them; because we use it to remotely access other systems also. But, I will look into Cygwin/X.

Thanks again...

Last edited by vtmckoy; 10-28-2008 at 09:03 PM.
 
Old 10-28-2008, 09:11 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,040

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
Originally Posted by vtmckoy View Post
jschiwal: Thank you very much for your input.

I guess I'm still a little unclear on what I need to do. This is all new to me and I'm trying to simulate this scenario for my home Linux environment. Do I need to buy a serial port switch/box/cable and what do I need to connect to what? Can you point me to some type of documentation discussing this?

As far as putty, our laptops are supplied by our job with specific software on them; because we use it to remotely access other systems also. But, I will look into Cygwin/X.

Thanks again...
Three steps: connect a null modem/serial wire to your server on one end, then connect another box/laptop in the other end, then login from that box to the relevant port.

Of course, the server needs to be configured to allow logins in that port, using agetty or whatever (the relevant file here is /etc/inittab, which by the way has a man page that might come in handy). Then you can use almost anything to login to the serial port from the client machine: from a real hardware dumb terminal to the windows hyperterminal, and of course, a wide range of linux terminal emulators capable of emulating vt100/vt102 stuff.

http://www.vanemery.com/Linux/Serial...l-console.html
http://www.builderau.com.au/program/...9285268,00.htm
 
Old 10-31-2008, 03:57 AM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
We have some devices on remote locations. These devices insert commercials on cable networks and are connected to the headends internet switch. Also, the first device has a (pots) modem input, and there are daisy chain connections between all of the units in the rack. This is just an example. Regular servers don't have the same daisy chain inputs, but the principle is that if the network device goes out, you can still connect via a phone connection. You could even then work on the router, or switch remotely from a server.

There was an article in a Linux magazine earlier this year about the authors experience using bonding for redundancy. This may be more important to understand than a second login port. It entails bonding two interfaces to one IP address. Each interface is connected to a different redundant switch or router. The switches/routers eliminate the redundant routes, but will add them if the first connection goes down. A problem the author had is when the load increased on a switch, it wouldn't send a certain type of packet to the next switch and that switch would un-delete the redundant route causing a loop. The solution was to replace some switches with routers. Apparently there is a low limit on how many inputs you can use when using bonding. If you can find that article you may find it interesting.

You never can be certain what the next interviewer might ask. But you have the right idea, in trying out things yourself so you can rely on actual hands on experience. In a work setting, one probably would do things the same way for a long time. At home you can try out different setups. At home you can experiment, and learn for example, when an application server works best and when centrally mounting shared-static system directories works best.

I find I've been babbling on. Sorry. Good Luck!
 
  


Reply

Tags
access, ethernet, linux, server


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
cannot access rsh but ssh is working just fine xear Linux - Networking 6 02-19-2009 08:10 AM
Using DSL and ssh / ssh-server to access the Windoze desktop GUI On2ndThought Linux - Server 4 11-16-2008 02:17 PM
access ssh tunnel (on server) from network ghostwriter78 Linux - Networking 13 11-02-2007 03:33 PM
limit access to SSH server by IP nick1 Suse/Novell 6 03-29-2005 04:36 PM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration