jskfan
asked on
Remote Desktop in Centos
Try disabling the firewall on the destination CentOS server (for testing). Can you connect now? If so you need to change firewall settings on the destination CentOS server.
One the destination CentOS machine type the following command to flush iptables:
iptables -F
Then try it again.
iptables -F
Then try it again.
ASKER
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@Gerwin Jansen, I agree, I just thought it would be helpful to explain how to do it and why iptables wasn't working.
ASKER
[root@localhost liveuser]# systemctl stop firewalld
[root@localhost liveuser]# ssh root@192.168.80.139
ssh: connect to host 192.168.80.139 port 22: Connection refused
[root@localhost liveuser]#
AS you can see , I stopped Firewall but still cannot remote using ssh
[root@localhost liveuser]# ssh root@192.168.80.139
ssh: connect to host 192.168.80.139 port 22: Connection refused
[root@localhost liveuser]#
AS you can see , I stopped Firewall but still cannot remote using ssh
You need to stop it on the machine you are trying to connect to (192.168.80.139).
ASKER
To explain what I have done:
I ran the below command in server1
[root@localhost liveuser]# systemctl stop firewalld
I went to server2 and ran:
ssh root@192.168.80.139
I got the following message:
ssh: connect to host 192.168.80.139 port 22: Connection refused
I ran the below command in server1
[root@localhost liveuser]# systemctl stop firewalld
I went to server2 and ran:
ssh root@192.168.80.139
I got the following message:
ssh: connect to host 192.168.80.139 port 22: Connection refused
Is sshd started on server1?
Post the output of the following command on server:
systemctl status sshd.service
Post the output of the following command on server:
systemctl status sshd.service
ASKER
I wonder if it is not installed
[root@localhost /]# systemctl status sshd.service
sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/s shd.servic e; disabled)
Active: inactive (dead)
[root@localhost /]#
[root@localhost /]# systemctl status sshd.service
sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/s
Active: inactive (dead)
[root@localhost /]#
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
systemctl start sshd.service
Thanks it worked for SSH...
I will post a separate question for RDP and VNC connection
Thanks it worked for SSH...
I will post a separate question for RDP and VNC connection