Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Regardless of the reason, I find myself needing to know how to send CRTL+ALT+BKSP via SSH. X keeps freezing as I'm messing with it, and right now the way I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907

    Send CRTL+ALT+BKSP thru SSH


    Regardless of the reason, I find myself needing to know how to send CRTL+ALT+BKSP via SSH. X keeps freezing as I'm messing with it, and right now the way I deal with it is ssh in, type init 3 and then init 5. It works, but I feel like that's sloppy. Is there a way to force X to restart (ie, CRTL+ALT+BKSP) over SSH?

    Thanks,
    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    I assume that you're ssh'ing with X Packets forwarded?

  3. #3
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    Well.. Not always. Sometimes I'm sshing on a Windows box using Cygwin. I'm sure it about X packets forwarding on Cygwin, do you know?
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  4. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Quote Originally Posted by jeremy1701
    I'm sure it about X packets forwarding on Cygwin, do you know?
    what?

  5. #5
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    /me puts down the booze.



    I'm not sure about X packets forwarding on Cygwin, do you know?
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  6. #6
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    If you have X installed on Cygwin, then it should be fine, otherwise, I don't think there would be any way to send the ctrl-alt-bkspace to X

  7. #7
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I may be missing something obvious here, but you're using
    Code:
    ssh -X user@host-name
    right?

    Closing the ssh session and re-opening it does not solve the problem?

  8. #8
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Assuming answer to above is "no", you might be able to get away with just restarting the xdm service. Quicker than changing runlevels back and forth.

  9. #9
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    anomie,

    How do I restart the xdm service from the command line? You mean something like

    Code:
    /etc/init.d/xdm restart
    ?

    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  10. #10
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Hi, yes that's what I would try. (I checked on my SuSE install and xdm takes a 'restart' argument.)

Page 1 of 2 1 2 LastLast

Posting Permissions

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