Ubuntu 16.04 Desktop Sharing - connect from one Ubuntu to another
I am trying to connect from an Ubuntu 16.04 workstation to another Ubuntu 16.04 workstation on my local LAN.
I have enabled Desktop Sharing as per the official documentation.
I have no confirmation required, no password required, and allow others to control your desktop. The machine is only accessible on my LAN.
There is no mention of how to connect to the desktop once you have enabled it.
I tried using the default installed Remmina Remote Desktop Client, and have tried both VNC and RDP. Neither works.
I have confirmed access, as I am able to ssh to the remote instance.
How can I connect to my remote desktop?
remote-desktop vnc rdp
add a comment |
I am trying to connect from an Ubuntu 16.04 workstation to another Ubuntu 16.04 workstation on my local LAN.
I have enabled Desktop Sharing as per the official documentation.
I have no confirmation required, no password required, and allow others to control your desktop. The machine is only accessible on my LAN.
There is no mention of how to connect to the desktop once you have enabled it.
I tried using the default installed Remmina Remote Desktop Client, and have tried both VNC and RDP. Neither works.
I have confirmed access, as I am able to ssh to the remote instance.
How can I connect to my remote desktop?
remote-desktop vnc rdp
1
"Neither works" can you be more specific - timeout? connection refused? Any error messages? Is vino listening on the expected port (5900) and interface (if in doubt, please edit your question to include the output ofsudo netstat -nlp | grep vino
)
– steeldriver
Oct 19 '16 at 0:12
1
Possible duplicate of How do I install a VNC server?
– Ciro Santilli 新疆改造中心 六四事件 法轮功
Aug 26 '17 at 15:41
add a comment |
I am trying to connect from an Ubuntu 16.04 workstation to another Ubuntu 16.04 workstation on my local LAN.
I have enabled Desktop Sharing as per the official documentation.
I have no confirmation required, no password required, and allow others to control your desktop. The machine is only accessible on my LAN.
There is no mention of how to connect to the desktop once you have enabled it.
I tried using the default installed Remmina Remote Desktop Client, and have tried both VNC and RDP. Neither works.
I have confirmed access, as I am able to ssh to the remote instance.
How can I connect to my remote desktop?
remote-desktop vnc rdp
I am trying to connect from an Ubuntu 16.04 workstation to another Ubuntu 16.04 workstation on my local LAN.
I have enabled Desktop Sharing as per the official documentation.
I have no confirmation required, no password required, and allow others to control your desktop. The machine is only accessible on my LAN.
There is no mention of how to connect to the desktop once you have enabled it.
I tried using the default installed Remmina Remote Desktop Client, and have tried both VNC and RDP. Neither works.
I have confirmed access, as I am able to ssh to the remote instance.
How can I connect to my remote desktop?
remote-desktop vnc rdp
remote-desktop vnc rdp
asked Oct 18 '16 at 23:28
Steve Lorimer
231515
231515
1
"Neither works" can you be more specific - timeout? connection refused? Any error messages? Is vino listening on the expected port (5900) and interface (if in doubt, please edit your question to include the output ofsudo netstat -nlp | grep vino
)
– steeldriver
Oct 19 '16 at 0:12
1
Possible duplicate of How do I install a VNC server?
– Ciro Santilli 新疆改造中心 六四事件 法轮功
Aug 26 '17 at 15:41
add a comment |
1
"Neither works" can you be more specific - timeout? connection refused? Any error messages? Is vino listening on the expected port (5900) and interface (if in doubt, please edit your question to include the output ofsudo netstat -nlp | grep vino
)
– steeldriver
Oct 19 '16 at 0:12
1
Possible duplicate of How do I install a VNC server?
– Ciro Santilli 新疆改造中心 六四事件 法轮功
Aug 26 '17 at 15:41
1
1
"Neither works" can you be more specific - timeout? connection refused? Any error messages? Is vino listening on the expected port (5900) and interface (if in doubt, please edit your question to include the output of
sudo netstat -nlp | grep vino
)– steeldriver
Oct 19 '16 at 0:12
"Neither works" can you be more specific - timeout? connection refused? Any error messages? Is vino listening on the expected port (5900) and interface (if in doubt, please edit your question to include the output of
sudo netstat -nlp | grep vino
)– steeldriver
Oct 19 '16 at 0:12
1
1
Possible duplicate of How do I install a VNC server?
– Ciro Santilli 新疆改造中心 六四事件 法轮功
Aug 26 '17 at 15:41
Possible duplicate of How do I install a VNC server?
– Ciro Santilli 新疆改造中心 六四事件 法轮功
Aug 26 '17 at 15:41
add a comment |
2 Answers
2
active
oldest
votes
The steps you mentioned that you have performed would be specific if you were on the same network or connecting to a remote machine with it's IP exposed with no firewalls.
If the host machine (as in almost all cases) is connected to a router and have a provide IP you would have to perform port forwarding to the computer you want to connect to. The router port to forward is 5900 TCP. You'll also have to ensure you have not blocked port 5900 though the host's firewall. Also ensure to allow connection from the client's IP via /etc/hosts.allow
.
Summary of client's access to the server:
1) Port forwared to the host IP in the routher (tcp 5900)
2) Firewall's port 5900 open
3) Access granted to the client's IP address via /etc/hosts.allow
/etc/hosts.allow:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
ALL: [remote desktop client's ip here]
You mentioned Ubuntu's default Desktop Sharing. That is the one I'm addressing. It doesn't use rdp
so you can leave that protocol along. Just concentrate on the VNC capable clients. The Remmina Remote Desktop Client
will work. Just make sure you have it set for VNC and not the other choices.
You have already specified port 22 (ssh
) is working which means that port is forwarded. Now the same way you setup and tested ssh
, you will have to do the same thing with port 5900
, for vnc
.
You have already specified what you need in the Vino configuration which is:
1. Allow other users to view your Desktop (Checkmark)
2. Allow other users to control your Desktop (Checkmark)
3. You must confirm (No Check mark)
4. Require the user to enter password (optional)
5. Automatically configure UpNp router (optional)
6. Show Notification area icon (optional)
Only three settings (highlighted in bold) is required for the connection. The other items are optional.
Just set the above configuration, close and connect with a VNC
enabled client.
While the Remmina
client will work, I used vinagre to test and prepare thses steps.
add a comment |
in my similar situation, after, I have checked my router settings: "Port forwarding" and "uPNP". I have found twice opened port "5900" from my previous very old game with Remote access to my other Ubuntu computer, currently uninstalled. History: previously I have used static internal network address of my machine under control and used Port forwarding in my router. But today I have decided to use "uPNP" - and duplicated port appears. Solution: in router setting - remove all old port configurations.
Regards.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f838977%2fubuntu-16-04-desktop-sharing-connect-from-one-ubuntu-to-another%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The steps you mentioned that you have performed would be specific if you were on the same network or connecting to a remote machine with it's IP exposed with no firewalls.
If the host machine (as in almost all cases) is connected to a router and have a provide IP you would have to perform port forwarding to the computer you want to connect to. The router port to forward is 5900 TCP. You'll also have to ensure you have not blocked port 5900 though the host's firewall. Also ensure to allow connection from the client's IP via /etc/hosts.allow
.
Summary of client's access to the server:
1) Port forwared to the host IP in the routher (tcp 5900)
2) Firewall's port 5900 open
3) Access granted to the client's IP address via /etc/hosts.allow
/etc/hosts.allow:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
ALL: [remote desktop client's ip here]
You mentioned Ubuntu's default Desktop Sharing. That is the one I'm addressing. It doesn't use rdp
so you can leave that protocol along. Just concentrate on the VNC capable clients. The Remmina Remote Desktop Client
will work. Just make sure you have it set for VNC and not the other choices.
You have already specified port 22 (ssh
) is working which means that port is forwarded. Now the same way you setup and tested ssh
, you will have to do the same thing with port 5900
, for vnc
.
You have already specified what you need in the Vino configuration which is:
1. Allow other users to view your Desktop (Checkmark)
2. Allow other users to control your Desktop (Checkmark)
3. You must confirm (No Check mark)
4. Require the user to enter password (optional)
5. Automatically configure UpNp router (optional)
6. Show Notification area icon (optional)
Only three settings (highlighted in bold) is required for the connection. The other items are optional.
Just set the above configuration, close and connect with a VNC
enabled client.
While the Remmina
client will work, I used vinagre to test and prepare thses steps.
add a comment |
The steps you mentioned that you have performed would be specific if you were on the same network or connecting to a remote machine with it's IP exposed with no firewalls.
If the host machine (as in almost all cases) is connected to a router and have a provide IP you would have to perform port forwarding to the computer you want to connect to. The router port to forward is 5900 TCP. You'll also have to ensure you have not blocked port 5900 though the host's firewall. Also ensure to allow connection from the client's IP via /etc/hosts.allow
.
Summary of client's access to the server:
1) Port forwared to the host IP in the routher (tcp 5900)
2) Firewall's port 5900 open
3) Access granted to the client's IP address via /etc/hosts.allow
/etc/hosts.allow:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
ALL: [remote desktop client's ip here]
You mentioned Ubuntu's default Desktop Sharing. That is the one I'm addressing. It doesn't use rdp
so you can leave that protocol along. Just concentrate on the VNC capable clients. The Remmina Remote Desktop Client
will work. Just make sure you have it set for VNC and not the other choices.
You have already specified port 22 (ssh
) is working which means that port is forwarded. Now the same way you setup and tested ssh
, you will have to do the same thing with port 5900
, for vnc
.
You have already specified what you need in the Vino configuration which is:
1. Allow other users to view your Desktop (Checkmark)
2. Allow other users to control your Desktop (Checkmark)
3. You must confirm (No Check mark)
4. Require the user to enter password (optional)
5. Automatically configure UpNp router (optional)
6. Show Notification area icon (optional)
Only three settings (highlighted in bold) is required for the connection. The other items are optional.
Just set the above configuration, close and connect with a VNC
enabled client.
While the Remmina
client will work, I used vinagre to test and prepare thses steps.
add a comment |
The steps you mentioned that you have performed would be specific if you were on the same network or connecting to a remote machine with it's IP exposed with no firewalls.
If the host machine (as in almost all cases) is connected to a router and have a provide IP you would have to perform port forwarding to the computer you want to connect to. The router port to forward is 5900 TCP. You'll also have to ensure you have not blocked port 5900 though the host's firewall. Also ensure to allow connection from the client's IP via /etc/hosts.allow
.
Summary of client's access to the server:
1) Port forwared to the host IP in the routher (tcp 5900)
2) Firewall's port 5900 open
3) Access granted to the client's IP address via /etc/hosts.allow
/etc/hosts.allow:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
ALL: [remote desktop client's ip here]
You mentioned Ubuntu's default Desktop Sharing. That is the one I'm addressing. It doesn't use rdp
so you can leave that protocol along. Just concentrate on the VNC capable clients. The Remmina Remote Desktop Client
will work. Just make sure you have it set for VNC and not the other choices.
You have already specified port 22 (ssh
) is working which means that port is forwarded. Now the same way you setup and tested ssh
, you will have to do the same thing with port 5900
, for vnc
.
You have already specified what you need in the Vino configuration which is:
1. Allow other users to view your Desktop (Checkmark)
2. Allow other users to control your Desktop (Checkmark)
3. You must confirm (No Check mark)
4. Require the user to enter password (optional)
5. Automatically configure UpNp router (optional)
6. Show Notification area icon (optional)
Only three settings (highlighted in bold) is required for the connection. The other items are optional.
Just set the above configuration, close and connect with a VNC
enabled client.
While the Remmina
client will work, I used vinagre to test and prepare thses steps.
The steps you mentioned that you have performed would be specific if you were on the same network or connecting to a remote machine with it's IP exposed with no firewalls.
If the host machine (as in almost all cases) is connected to a router and have a provide IP you would have to perform port forwarding to the computer you want to connect to. The router port to forward is 5900 TCP. You'll also have to ensure you have not blocked port 5900 though the host's firewall. Also ensure to allow connection from the client's IP via /etc/hosts.allow
.
Summary of client's access to the server:
1) Port forwared to the host IP in the routher (tcp 5900)
2) Firewall's port 5900 open
3) Access granted to the client's IP address via /etc/hosts.allow
/etc/hosts.allow:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
ALL: [remote desktop client's ip here]
You mentioned Ubuntu's default Desktop Sharing. That is the one I'm addressing. It doesn't use rdp
so you can leave that protocol along. Just concentrate on the VNC capable clients. The Remmina Remote Desktop Client
will work. Just make sure you have it set for VNC and not the other choices.
You have already specified port 22 (ssh
) is working which means that port is forwarded. Now the same way you setup and tested ssh
, you will have to do the same thing with port 5900
, for vnc
.
You have already specified what you need in the Vino configuration which is:
1. Allow other users to view your Desktop (Checkmark)
2. Allow other users to control your Desktop (Checkmark)
3. You must confirm (No Check mark)
4. Require the user to enter password (optional)
5. Automatically configure UpNp router (optional)
6. Show Notification area icon (optional)
Only three settings (highlighted in bold) is required for the connection. The other items are optional.
Just set the above configuration, close and connect with a VNC
enabled client.
While the Remmina
client will work, I used vinagre to test and prepare thses steps.
answered Oct 19 '16 at 1:56
L. D. James
18.1k43686
18.1k43686
add a comment |
add a comment |
in my similar situation, after, I have checked my router settings: "Port forwarding" and "uPNP". I have found twice opened port "5900" from my previous very old game with Remote access to my other Ubuntu computer, currently uninstalled. History: previously I have used static internal network address of my machine under control and used Port forwarding in my router. But today I have decided to use "uPNP" - and duplicated port appears. Solution: in router setting - remove all old port configurations.
Regards.
add a comment |
in my similar situation, after, I have checked my router settings: "Port forwarding" and "uPNP". I have found twice opened port "5900" from my previous very old game with Remote access to my other Ubuntu computer, currently uninstalled. History: previously I have used static internal network address of my machine under control and used Port forwarding in my router. But today I have decided to use "uPNP" - and duplicated port appears. Solution: in router setting - remove all old port configurations.
Regards.
add a comment |
in my similar situation, after, I have checked my router settings: "Port forwarding" and "uPNP". I have found twice opened port "5900" from my previous very old game with Remote access to my other Ubuntu computer, currently uninstalled. History: previously I have used static internal network address of my machine under control and used Port forwarding in my router. But today I have decided to use "uPNP" - and duplicated port appears. Solution: in router setting - remove all old port configurations.
Regards.
in my similar situation, after, I have checked my router settings: "Port forwarding" and "uPNP". I have found twice opened port "5900" from my previous very old game with Remote access to my other Ubuntu computer, currently uninstalled. History: previously I have used static internal network address of my machine under control and used Port forwarding in my router. But today I have decided to use "uPNP" - and duplicated port appears. Solution: in router setting - remove all old port configurations.
Regards.
answered Nov 10 at 9:03
user2128511
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f838977%2fubuntu-16-04-desktop-sharing-connect-from-one-ubuntu-to-another%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
"Neither works" can you be more specific - timeout? connection refused? Any error messages? Is vino listening on the expected port (5900) and interface (if in doubt, please edit your question to include the output of
sudo netstat -nlp | grep vino
)– steeldriver
Oct 19 '16 at 0:12
1
Possible duplicate of How do I install a VNC server?
– Ciro Santilli 新疆改造中心 六四事件 法轮功
Aug 26 '17 at 15:41