- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: turning off dns lookup when using ssh
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2009 12:35 AM
09-29-2009 12:35 AM
turning off dns lookup when using ssh
i have tried setting UseDns to no but this does not help i found a thread about setting up a parameter in /etc/sysconfig/sshd that when the sshd process starts it starts with a -ou option that disables dns lookups but the file does not exist.
can anyone help in shutting down dns lookups in ssh login.
regards
andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2009 01:58 AM
09-29-2009 01:58 AM
Re: turning off dns lookup when using ssh
See if setting RESOLV_HOST_CONF helps - man host.conf. RESOLV_SERV_ORDER shall also help.
Regards,
Goran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2009 02:29 AM
09-29-2009 02:29 AM
Re: turning off dns lookup when using ssh
Example: if you have specified DenyUsers=*@evil.org then sshd must do a reverse lookup to find out whether the IP address the user is connecting from belongs to evil.org or not.
When sshd makes a hostname lookup, it does not explicitly choose to use either DNS or the hosts file. Sshd simply uses the gethostbyname() or gethostbyaddr() functions provided by the system's libc library. Linux usually uses GNU libc, which is configurable via the usual /etc/nsswitch.conf and /etc/resolv.conf.
/etc/sysconfig/sshd is used in RedHat/Fedora distributions. If you don't have that, you obviously have something different. What kind of Linux do you have?
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2009 02:57 AM
09-29-2009 02:57 AM
Re: turning off dns lookup when using ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2009 04:49 AM
09-29-2009 04:49 AM
Re: turning off dns lookup when using ssh
It says:
# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
i.e. "read the /etc/sysconfig/sshd file if it exists, otherwise keep going using the default values".
If /etc/sysconfig/sshd does not exist, your system is using the factory default configuration for sshd. Just create the file and put in it the line:
OPTIONS="-u0"
Then restart sshd with "service sshd restart".
MK