Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, Ubuntu 11.04 remote PC Debian 6.0 $ ssh +x 192.168.0.10 worked previously forwarding X to local PC Suddenly; $ ssh +x 192.168.0.10 Code: ssh: Could not resolve hostname ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,793

    X forwarding fails to work suddenly


    Hi all,

    Ubuntu 11.04
    remote PC Debian 6.0

    $ ssh +x 192.168.0.10
    worked previously forwarding X to local PC

    Suddenly;
    $ ssh +x 192.168.0.10
    Code:
    ssh: Could not resolve hostname +x: Name or service not known
    However
    $ ssh 192.168.0.10
    still works connecting the remote PC

    $ sudo stop ssh
    ssh stop/waiting

    $ sudo start ssh
    ssh start/running, process 6027

    couldn't solve the problem. Pls help. TIA

    satimis

  2. #2
    Just Joined!
    Join Date
    May 2011
    Location
    Central FL
    Posts
    91
    ssh is properly trying to find the hostname "+x", which you don't have defined.

    All arguments to ssh are preceeded by a "-", as are the arguments for most commands (exceptions do appear)
    You should be using proper argument calls like "ssh -X" (or ssh -Y), etc - to access this function.

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,793
    Quote Originally Posted by dayid View Post
    ssh is properly trying to find the hostname "+x", which you don't have defined.

    All arguments to ssh are preceeded by a "-", as are the arguments for most commands (exceptions do appear)
    You should be using proper argument calls like "ssh -X" (or ssh -Y), etc - to access this function.
    Sorry I made a mistake. X forwarding works without problem.

    $ ssh -X -C -c blowfish user@192.168.0.10 "gnome-panel"
    starts the remote desktop on local PC

    Thanks

    B.R.
    satimis

Posting Permissions

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