+ Post New Thread
Results 1 to 13 of 13
*nix Thread, Putty SSH Connection tty1 in Technical; Hi all - should I hope be an easy question (even if the answer is "not possible") I want to ...
  1. #1

    Join Date
    Feb 2009
    Posts
    460
    Thank Post
    66
    Thanked 34 Times in 21 Posts
    Blog Entries
    1
    Rep Power
    19

    Putty SSH Connection tty1

    Hi all - should I hope be an easy question (even if the answer is "not possible")

    I want to connect to the main console (tty1?) from an SSH session from PuTTY. Is this possible and if so how?

    Thanks all

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    You could investigate TTY redirection, which you'd normally do to a serial device but I don't know if you can redirect to a virtual device after the event.

    You could also use screen, but that means leaving tty1 logged in and unattended, which I don't recommend (see Connect to TTY1 Session using SSH - Ubuntu Forums)

  3. #3

    Join Date
    Feb 2009
    Posts
    460
    Thank Post
    66
    Thanked 34 Times in 21 Posts
    Blog Entries
    1
    Rep Power
    19
    ok looks like I will need to walk to the server to perform certain tasks - thanks

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    What do you need to do that requires tty1??

  5. #5

    Join Date
    Feb 2009
    Posts
    460
    Thank Post
    66
    Thanked 34 Times in 21 Posts
    Blog Entries
    1
    Rep Power
    19
    shutting down server doesn't work through ssh and when I was just installing something I had to run a preinstall_setup.sh and it wasn't able to reboot so I had to walk to the server and do it

  6. #6

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by DAckroyd View Post
    shutting down server doesn't work through ssh and when I was just installing something I had to run a preinstall_setup.sh and it wasn't able to reboot so I had to walk to the server and do it
    There's no reason not to be able to shut down through SSH (you just get a shell, after all) so something about your install is broken. Presume you were root when you shut down?

  7. #7

    Join Date
    Feb 2009
    Posts
    460
    Thank Post
    66
    Thanked 34 Times in 21 Posts
    Blog Entries
    1
    Rep Power
    19
    I can't log into the server as root through SSH (it's an ESX box)

    I su into root but it doesn't allow it

  8. #8

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,885
    Thank Post
    518
    Thanked 2,489 Times in 1,930 Posts
    Blog Entries
    24
    Rep Power
    839
    have you tried using sudo?

  9. #9

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by DAckroyd View Post
    (it's an ESX box)
    Ah, you didn't say that. Try saying telinit 0 as root.

  10. #10

    Join Date
    Feb 2009
    Posts
    460
    Thank Post
    66
    Thanked 34 Times in 21 Posts
    Blog Entries
    1
    Rep Power
    19
    Quote Originally Posted by powdarrmonkey View Post
    Ah, you didn't say that. Try saying telinit 0 as root.
    logged on remotely, su'ed then:
    [root@...]# telinet 0

    bash: telinit: command not found

  11. #11
    TwoZeroAlpha's Avatar
    Join Date
    Nov 2008
    Location
    Colchester, Essex
    Posts
    475
    Thank Post
    69
    Thanked 69 Times in 55 Posts
    Rep Power
    35
    sudo reboot now

    usually works for me

    Also

    sudo shutdown -P now (for poweroff)

  12. #12

    Domino's Avatar
    Join Date
    Oct 2006
    Location
    Bromley
    Posts
    4,094
    Thank Post
    217
    Thanked 1,292 Times in 802 Posts
    Blog Entries
    4
    Rep Power
    513
    you could always enable root access

    sysdigg: Enable SSH root login into VMware ESX

  13. #13

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by TwoZeroAlpha View Post
    sudo reboot now

    usually works for me

    Also

    sudo shutdown -P now (for poweroff)
    On a machine that VMware haven't crippled, yes...

    Mind you, I'm more worried that their software requires a reboot to take effect (such a Windows-ism...). Can you not restart the service affected instead?

SHARE:
+ Post New Thread

Similar Threads

  1. [Fedora] SSH Problems
    By Gatt in forum *nix
    Replies: 11
    Last Post: 11th February 2009, 09:55 AM
  2. how to copy folder using putty
    By ranj in forum *nix
    Replies: 2
    Last Post: 26th June 2008, 05:46 PM
  3. Reverse proxying SSH...
    By Joedetic in forum Wireless Networks
    Replies: 7
    Last Post: 6th August 2007, 11:56 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •