LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2010, 09:08 AM   #1
user100
Member
 
Registered: Aug 2010
Posts: 64

Rep: Reputation: 0
ssh listening only to eth1


Hi,

How can I configure ssh to only listen to eth1?


Thanks.
 
Old 09-18-2010, 09:18 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Open sshd_config, look for ListenAddress and use the IP address of eth1.

Cheers
 
Old 09-18-2010, 09:19 AM   #3
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
You can bind SSH to specificed IP by using ListenAddress option in /etc/ssh/sshd_config.
 
Old 09-21-2010, 11:04 AM   #4
user100
Member
 
Registered: Aug 2010
Posts: 64

Original Poster
Rep: Reputation: 0
Nice. I guess that will do.

But I can't make it listen to an interface right, only IP address?
 
Old 09-21-2010, 04:27 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

An interface (like eth1) has an IP address assigned to it. Since ListenAddress accepts as argument only IP adresses (and/or port number), this is the only way to bind sshd to an interface.

Cheers
 
  


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
A question about listening interfaces on ssh... trist007 Linux - Newbie 5 06-27-2010 09:37 AM
Problem with ssh listening address cK` Linux - Newbie 6 04-07-2010 05:33 PM
Howto do Secured ssh from port https or port80(standard) to ssh d listening port 22 ? Xeratul Linux - General 4 11-23-2006 06:09 AM
Help! ssh to home desktop is listening but not accepting password vrooje Linux - General 10 01-02-2005 08:22 PM
ssh listening on port 22 sharpie Linux - Security 9 06-08-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:11 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