Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-19-2011, 08:12 AM
|
#1
|
LQ Newbie
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29
Rep:
|
ssh config
can any tell me the difference between ssh_config and sshd_config file?
please explain in detail..
|
|
|
02-19-2011, 08:15 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
ssh_config is the default configuration for the ssh client - when you use the ssh, scp or sftp commands to connect to another machine.
sshd_config is the configuration for the ssh server, the service you connect to.
More details are available with 'man ssh_config' and 'man sshd_config'.
|
|
1 members found this post helpful.
|
02-19-2011, 08:25 AM
|
#3
|
LQ Newbie
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29
Original Poster
Rep:
|
chnaging ssh port
I have a vps server. I just changed ssh port to 100 from 22. But now it is not logging into it.
please help
|
|
|
02-19-2011, 08:26 AM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
Did you restart the ssh server? Are you overriding the default port in ssh_config? Is there a firewall that blocks port 100?
To ssh to a port 100 ssh server:
Code:
ssh -p 100 servername
Last edited by macemoneta; 02-19-2011 at 08:28 AM.
|
|
|
02-19-2011, 08:28 AM
|
#5
|
LQ Newbie
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29
Original Poster
Rep:
|
after changing , i restarted the service ssh with this command
service sshd restart
but now it is not logging in
|
|
|
02-19-2011, 08:32 AM
|
#6
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
It's always a good idea to add the new port to the ssh server and test before removing the old one. You'll need to contact your vps provider and have them correct your configuration if you have no other access.
|
|
1 members found this post helpful.
|
02-19-2011, 08:34 AM
|
#7
|
LQ Newbie
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29
Original Poster
Rep:
|
yeah...i consult my senior tech. he also suggested so..Anywaz thanks for your help.
|
|
|
All times are GMT -5. The time now is 11:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|