LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2018, 01:36 PM   #1
cuit100
LQ Newbie
 
Registered: Mar 2018
Posts: 9

Rep: Reputation: Disabled
Cant SSH


I am installing Centos 7 on vps which works fine with ssh but problem arises after i install any GUI be it "X Window System" or "GNOME Desktop"

1.There is no issue installing GUI but as soon as system reboots i cant connect via ssh.

2. I have tried every possible way i could think from my end. Iptables rules are already written for port 22. I already passed "firewall-cmd --permanent --add-service=ssh" . Even set "systemctl enable sshd" .

3. I also tried with removing firewalld before reboot so that any reason for firewall issue can be ruled out.

All my experiment turned out to be zero. There is no issue of system crash as vps status shows online in vpspanel. Every thing works fine until reboot but as soon as any GUI installed and rebooted no more ssh to vps .

Error i get is "Network error: Connection timed out"
 
Old 03-03-2018, 08:23 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
The gui install might change the ssh config file to account for a few new relevant options that apply only to ssh on a gui system. Check /etc/ssh/ssh_config.
 
Old 03-03-2018, 10:09 PM   #3
cuit100
LQ Newbie
 
Registered: Mar 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
The gui install might change the ssh config file to account for a few new relevant options that apply only to ssh on a gui system. Check /etc/ssh/ssh_config.
Problem is i cant connect to vps after reboot so if any change happens after reboot i cant find. Before reboot i cant disconnect and reconnect easily and if i look at ssh_config there is no changes so if any update occurs during reboot i cant figure out a way to know that.

Also, its not just ssh. Even i installed vnc and configured it but after reboot i cant even connect to vnc also
 
Old 03-04-2018, 02:13 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,507
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
you might need to reset the vps and start from scratch.

watch more closely when installing/updating/upgrading.
think before pressing enter.

food for thought:
why do you need a gui on a server?
 
Old 03-04-2018, 03:02 AM   #5
cuit100
LQ Newbie
 
Registered: Mar 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
you might need to reset the vps and start from scratch.

watch more closely when installing/updating/upgrading.
think before pressing enter.

food for thought:
why do you need a gui on a server?
Yeah i already did reinstall everytime but as soon as GUI setup it fails.

Anyways i think i might have recognized the issue. I guess after GUI network needs to be setup again as ping to server is unreachable. Alternatively i got access to console and sshd and other service are running so network is the only issue i found so far. Need to look into few more things.

Why need GUI? coz its comfortable to my other team member and need VNC setup and few nore requirements so
 
Old 03-10-2018, 12:02 PM   #6
cuit100
LQ Newbie
 
Registered: Mar 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Ok here's what i found.

NetworkManager package was getting installed which was overwriting dns entry upon boot making server unreachable.

Just before rebooting used

yum -y remove NetworkManager

which solved issue
 
Old 03-11-2018, 01:08 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,507
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
Quote:
Originally Posted by cuit100 View Post
NetworkManager package was getting installed which was overwriting dns entry upon boot making server unreachable.
my point precisely. having a GUI (or worse, a desktop environment) on a server machine just complicates or even breaks things.
 
Old 03-11-2018, 03:01 AM   #8
cuit100
LQ Newbie
 
Registered: Mar 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
my point precisely. having a GUI (or worse, a desktop environment) on a server machine just complicates or even breaks things.
well i love complication. i work both end command line and GUI. i am not a geek in linux but i keep researching and learning. there are interesting way both via command line and gui. Also, if there are people in your team or your client who only understand GUI you need to deliver them what they what so i keep my way open to both sides.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The difference in settings: console from desktop & ssh as DISPLAY not set when ssh in wikapuki Linux - Newbie 10 07-02-2010 09:44 AM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 03:15 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration