Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why ssh -X opens the X aplication on server side for regular users

Hello, I have the following set-up that I use to experiment with SSH:

  • Computer 1 running FC25 running as ssh server
  • Computer 1 has a root user (with root password) and a regular user (regular_username) in the wheel group, but with no set password
  • Computer 2 running Ubuntu (16.10) running as ssh client
  • both computers are in my local home network, behind a router, ....

What works correctly is:

  • I am able to ssh from the client to the server using both the server root and regular_username account.

The strange/unexpected behavior is:

  • when I try to run on the client something like ssh -X root@server_ip_address gedit, then gedit opens somewhat normally on the client screen (I say somewhat normally because the first time I try this it throws some errors and fails, but the second, third, ... time it throws some errors (fewer this time but same as the first time) and then gedit window is shown on the client screen as expected)
  • when I try to run on the client something like ssh -X regular_username@server_ip_address gedit, then the gedit window opens on the server screen. This is totally unexpected to me, as I would expect to get a gedit window on the client display.

In summary, my main question is: does anyone have an explanation for this and what do I need to do to get the correct/expected behavior?

Many thanks.

Why ssh -X opens the X aplication on server side for regular users

Hello, I have the following set-up that I use to experiment with SSH:

  • Computer 1 running FC25 running as ssh server
  • Computer 1 has a root user (with root password) and a regular user (regular_username) in the wheel group, but with no set password
  • Computer 2 running Ubuntu (16.10) running as ssh client
  • both computers are in my local home network, behind a router, ....

What works correctly is:

  • I am able to ssh from the client to the server using both the server root and regular_username account.

The strange/unexpected behavior is:

  • when I try to run on the client something like ssh -X root@server_ip_address gedit, then gedit opens somewhat normally on the client screen (I say somewhat normally because the first time I try this it throws some errors and fails, but the second, third, ... time it throws some errors (fewer this time but same as the first time) and then gedit window is shown on the client screen as expected)
  • when I try to run on the client something like ssh -X regular_username@server_ip_address gedit, then the gedit window opens on the server screen. This is totally unexpected to me, as I would expect to get a gedit window on the client display.

In summary, my main question is: does anyone have an What do I need to do to get the correct/expected behavior?

PS: Of course that it would be very nice if someone can provide a logical explanation for this and what do I need to do to get the correct/expected behavior?behavior...

Many thanks.

Why ssh -X opens the X aplication on server side screen for regular users

Hello, I have the following set-up that I use to experiment with SSH:

  • Computer 1 running FC25 running as ssh server
  • Computer 1 has a root user (with root password) and a regular user (regular_username) in the wheel group, but with no set password
  • Computer 2 running Ubuntu (16.10) running as ssh client
  • both computers are in my local home network, behind a router, ....

What works correctly is:

  • I am able to ssh from the client to the server using both the server root and regular_username account.

The strange/unexpected behavior is:

  • when I try to run on the client something like ssh -X root@server_ip_address gedit, then gedit opens somewhat normally on the client screen (I say somewhat normally because the first time I try this it throws some errors and fails, but the second, third, ... time it throws some errors (fewer this time but same as the first time) and then gedit window is shown on the client screen as expected)
  • when I try to run on the client something like ssh -X regular_username@server_ip_address gedit, then the gedit window opens on the server screen. This is totally unexpected to me, as I would expect to get a gedit window on the client display.

In summary, my question is: What do I need to do to get the correct/expected behavior?

PS: Of course that it would be very nice if someone can provide a logical explanation for this behavior...

Many thanks.