Change Default X11 Forwarding Port
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to run X11Forwarding support through my sshd, but the machine has direct Internet access. I would like to change the default port of 6010 to some other port number at the least, but ideally I would also like to have it only listen for localhost connections.
ssh x11
add a comment |Â
up vote
0
down vote
favorite
I want to run X11Forwarding support through my sshd, but the machine has direct Internet access. I would like to change the default port of 6010 to some other port number at the least, but ideally I would also like to have it only listen for localhost connections.
ssh x11
It is listening on localhost only by default.
â Ipor Sircer
Jun 13 at 13:13
Why can I see it from another machine with: nmap -Pn -p 6010 <IP_ADDR>
â Katya Veselnitskaya
Jun 13 at 13:35
Because you've set other than default options or something else is listening not sshd.
â Ipor Sircer
Jun 13 at 13:40
What OS are you using?
â ctrl-alt-delor
Jun 13 at 14:23
It is Debian Jessie Lite
â Katya Veselnitskaya
Jun 13 at 15:33
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to run X11Forwarding support through my sshd, but the machine has direct Internet access. I would like to change the default port of 6010 to some other port number at the least, but ideally I would also like to have it only listen for localhost connections.
ssh x11
I want to run X11Forwarding support through my sshd, but the machine has direct Internet access. I would like to change the default port of 6010 to some other port number at the least, but ideally I would also like to have it only listen for localhost connections.
ssh x11
asked Jun 13 at 12:59
Katya Veselnitskaya
33
33
It is listening on localhost only by default.
â Ipor Sircer
Jun 13 at 13:13
Why can I see it from another machine with: nmap -Pn -p 6010 <IP_ADDR>
â Katya Veselnitskaya
Jun 13 at 13:35
Because you've set other than default options or something else is listening not sshd.
â Ipor Sircer
Jun 13 at 13:40
What OS are you using?
â ctrl-alt-delor
Jun 13 at 14:23
It is Debian Jessie Lite
â Katya Veselnitskaya
Jun 13 at 15:33
add a comment |Â
It is listening on localhost only by default.
â Ipor Sircer
Jun 13 at 13:13
Why can I see it from another machine with: nmap -Pn -p 6010 <IP_ADDR>
â Katya Veselnitskaya
Jun 13 at 13:35
Because you've set other than default options or something else is listening not sshd.
â Ipor Sircer
Jun 13 at 13:40
What OS are you using?
â ctrl-alt-delor
Jun 13 at 14:23
It is Debian Jessie Lite
â Katya Veselnitskaya
Jun 13 at 15:33
It is listening on localhost only by default.
â Ipor Sircer
Jun 13 at 13:13
It is listening on localhost only by default.
â Ipor Sircer
Jun 13 at 13:13
Why can I see it from another machine with: nmap -Pn -p 6010 <IP_ADDR>
â Katya Veselnitskaya
Jun 13 at 13:35
Why can I see it from another machine with: nmap -Pn -p 6010 <IP_ADDR>
â Katya Veselnitskaya
Jun 13 at 13:35
Because you've set other than default options or something else is listening not sshd.
â Ipor Sircer
Jun 13 at 13:40
Because you've set other than default options or something else is listening not sshd.
â Ipor Sircer
Jun 13 at 13:40
What OS are you using?
â ctrl-alt-delor
Jun 13 at 14:23
What OS are you using?
â ctrl-alt-delor
Jun 13 at 14:23
It is Debian Jessie Lite
â Katya Veselnitskaya
Jun 13 at 15:33
It is Debian Jessie Lite
â Katya Veselnitskaya
Jun 13 at 15:33
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
X11 should be configured to only allow local access, and with xauth, so only the correct user can connect.
Then ssh
can be used to connect to a remote machine, with ssh -X
.
If it is only allowing local access, then why can I see the port listening from another machine?
â Katya Veselnitskaya
Jun 13 at 15:35
Yes, set your firewall to block it. And look at the X11 configuration.
â ctrl-alt-delor
Jun 13 at 15:56
Yes thank you, I have it working now. :)
â Katya Veselnitskaya
Jun 13 at 16:03
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
X11 should be configured to only allow local access, and with xauth, so only the correct user can connect.
Then ssh
can be used to connect to a remote machine, with ssh -X
.
If it is only allowing local access, then why can I see the port listening from another machine?
â Katya Veselnitskaya
Jun 13 at 15:35
Yes, set your firewall to block it. And look at the X11 configuration.
â ctrl-alt-delor
Jun 13 at 15:56
Yes thank you, I have it working now. :)
â Katya Veselnitskaya
Jun 13 at 16:03
add a comment |Â
up vote
0
down vote
accepted
X11 should be configured to only allow local access, and with xauth, so only the correct user can connect.
Then ssh
can be used to connect to a remote machine, with ssh -X
.
If it is only allowing local access, then why can I see the port listening from another machine?
â Katya Veselnitskaya
Jun 13 at 15:35
Yes, set your firewall to block it. And look at the X11 configuration.
â ctrl-alt-delor
Jun 13 at 15:56
Yes thank you, I have it working now. :)
â Katya Veselnitskaya
Jun 13 at 16:03
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
X11 should be configured to only allow local access, and with xauth, so only the correct user can connect.
Then ssh
can be used to connect to a remote machine, with ssh -X
.
X11 should be configured to only allow local access, and with xauth, so only the correct user can connect.
Then ssh
can be used to connect to a remote machine, with ssh -X
.
answered Jun 13 at 14:25
ctrl-alt-delor
8,73831947
8,73831947
If it is only allowing local access, then why can I see the port listening from another machine?
â Katya Veselnitskaya
Jun 13 at 15:35
Yes, set your firewall to block it. And look at the X11 configuration.
â ctrl-alt-delor
Jun 13 at 15:56
Yes thank you, I have it working now. :)
â Katya Veselnitskaya
Jun 13 at 16:03
add a comment |Â
If it is only allowing local access, then why can I see the port listening from another machine?
â Katya Veselnitskaya
Jun 13 at 15:35
Yes, set your firewall to block it. And look at the X11 configuration.
â ctrl-alt-delor
Jun 13 at 15:56
Yes thank you, I have it working now. :)
â Katya Veselnitskaya
Jun 13 at 16:03
If it is only allowing local access, then why can I see the port listening from another machine?
â Katya Veselnitskaya
Jun 13 at 15:35
If it is only allowing local access, then why can I see the port listening from another machine?
â Katya Veselnitskaya
Jun 13 at 15:35
Yes, set your firewall to block it. And look at the X11 configuration.
â ctrl-alt-delor
Jun 13 at 15:56
Yes, set your firewall to block it. And look at the X11 configuration.
â ctrl-alt-delor
Jun 13 at 15:56
Yes thank you, I have it working now. :)
â Katya Veselnitskaya
Jun 13 at 16:03
Yes thank you, I have it working now. :)
â Katya Veselnitskaya
Jun 13 at 16:03
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449542%2fchange-default-x11-forwarding-port%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
It is listening on localhost only by default.
â Ipor Sircer
Jun 13 at 13:13
Why can I see it from another machine with: nmap -Pn -p 6010 <IP_ADDR>
â Katya Veselnitskaya
Jun 13 at 13:35
Because you've set other than default options or something else is listening not sshd.
â Ipor Sircer
Jun 13 at 13:40
What OS are you using?
â ctrl-alt-delor
Jun 13 at 14:23
It is Debian Jessie Lite
â Katya Veselnitskaya
Jun 13 at 15:33