Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to configure my cisco 2950 switch and I need to use putty on linux. Im not used to using linux but I've been told that putty is built in to linux terminal. I have my serial console cable connected to the router but I'm unable to telnet in. How do I use putty?

share|improve this question
add comment

2 Answers

The PuTTY program is not built into Linux. What the other person meant is that most Linux systems come with commands that provide the same functionality as PuTTY:

  • The SSH client is ssh.

  • The Telnet client is telnet.

  • The serial console clients are screen and minicom.

To connect to the first serial port using screen, run:

screen /dev/ttyS0

Press CtrlA followed by CtrlK to disconnect. (Some systems use just K instead of CtrlK.)

share|improve this answer
    
You could also use Ctrl+A+D to disconnect but leave the screen running. –  Kruug Apr 9 '13 at 19:52
    
@Kruug: That's not always desirable when using screen as a serial console terminal, since it leaves the tty device busy and can cause confusion. –  grawity Apr 9 '13 at 19:53
    
when i type your command in the terminal it doesn't work. –  isuck Apr 9 '13 at 19:54
2  
when i read your comment it doesn't help. Got any details? –  grawity Apr 9 '13 at 19:54
1  
@isuck sudo apt-get install screen, assuming you're running Debian, Ubuntu, Mint, et al. –  Kruug Apr 9 '13 at 20:42
show 4 more comments

Edit:

Putty does exist on Linux too (sudo apt-get install putty on most debian-ish systems), if Putty is exactly what you have a guide for - even though it's unnecessary on Linux.

To find the serial port to use for Putty/Minicom/Screen, you could plug in the cable and shortly after use dmesg | grep USB in a terminal to see the output (you should see something like New device on /dev/ttyUSB0 or various /dev/tty*'s to make sure you are attempting to connect to the correct Serial line.


As an alternative if Linux overwhelms you:

If all you need is access to the Serial connection and nothing specific from the Linux shell, then you can use Putty from Windows (I would assume you have access to a Windows machine as well). (Download Page).

Determine which Serial port (or "COM" port in windows) you need in Device Manager:

COM ports

Then in Putty, choose Serial, enter the COM port and the BAUD (Speed):

enter image description here

If you need advanced settings to the serial connection in PUTTY, you can do that in the left menu Connection > Serial

share|improve this answer
    
If I understood the question correctly, OP is connecting from a Linux box, not to one. –  grawity Apr 9 '13 at 20:58
    
@grawity - The question is confusing, because you can configure a Cisco system (enterprise) with a serial connection, doesn't really matter what from (i.e. platform agnostic, really). Since they voice that they haven't used Linux much, I simply am providing another solution (and there is a Putty in Linux too, if that's what they have a guide for). They could easily carry over a Windows box, plug in the serial cable and do it just the same. From seems irrelevant to the question since all commands for configuration would be built into the Cisco system. –  nerdwaller Apr 9 '13 at 21:33
2  
IMO you should really edit your answer, because it is upside down. Put the section titled "Edit" as your main answer (since it actually answers the title question, as opposed to the other "answer" that says "use this instead"). Then reuse & describe your original text as an alternative to the OP's situation. –  sawdust Apr 10 '13 at 0:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.