LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-19-2011, 08:12 AM   #1
charanjaitu
LQ Newbie
 
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29

Rep: Reputation: 1
ssh config


can any tell me the difference between ssh_config and sshd_config file?
please explain in detail..
 
Old 02-19-2011, 08:15 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
Old 02-19-2011, 08:25 AM   #3
charanjaitu
LQ Newbie
 
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29

Original Poster
Rep: Reputation: 1
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
 
Old 02-19-2011, 08:26 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 02-19-2011, 08:28 AM   #5
charanjaitu
LQ Newbie
 
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29

Original Poster
Rep: Reputation: 1
after changing , i restarted the service ssh with this command
service sshd restart
but now it is not logging in
 
Old 02-19-2011, 08:32 AM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
Old 02-19-2011, 08:34 AM   #7
charanjaitu
LQ Newbie
 
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29

Original Poster
Rep: Reputation: 1
yeah...i consult my senior tech. he also suggested so..Anywaz thanks for your help.
 
  


Reply



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
SSH config Gdog2010 Linux - Security 5 11-15-2010 06:42 PM
root terminal has different bash config when I ssh in vs su from another ssh account stardotstar Linux - General 4 07-01-2010 06:24 PM
SSH config noir911 Linux - Server 1 06-26-2009 07:53 PM
SSH config on OpenSuse 10.2 andy.l SUSE / openSUSE 3 04-23-2007 05:32 PM
/etc/ssh/ssh.config jeffpoulsen Linux - Software 2 04-24-2003 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:07 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
Open Source Consulting | Domain Registration