SSH and VNC in Linux


SSH in Linux
vi /etc/ssh/sshd_config

rpm –qa | grep openssh-server
yum install openssh* -y [if not installed ]
systemctl restart sshd.service
systemctl enable sshd.service
systemctl status sshd.service
port allow through firewall:
firewall -cmd --list-all --zone=public
netstat –ntlp | grep sshd




vnc in Linux:

#rpm –qa | grep tigervnc-Server
#yum install vnc tigervnc-server -y
#rpm –qa | grep tigervnc-Server
#cd /lib/systemd/system/
##cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver-user1@:2.service
[have to do same thing when we want to give more user permit to access vnc]

#cd /etc/systemd/system/
#systemctl daemon-reload
# id root  [check user exist or not]
#vncpasswd
#su user1
#vncpasswd

#systemctl status vncserver-root@:1.service
# systemctl enable vncserver-root@:1.service
#firewall-cmd - -permanent - -add-service=vnc-server
# firewall-cmd - -reload
# firewall-cmd - -list-all
#netstat –ntlp | grep vnc

No comments:

Post a Comment