linux:ssh
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| linux:ssh [30/12/2024 12:43] – [Hijacking an ssh session] andrew | linux:ssh [30/12/2024 12:46] (current) – [Interfaces] andrew | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| I was caught out trying to set up a linux router with multiple interfaces. I was unable to ssh to it from any os or client, but pings and ntp worked fine. It seems that for a host with multiple interfaces, you have to specify the addresses you want sshd to listen to explicitly. However subsequently I have not had this problem on other systems, but it can be used to advantage if you have a multihomed system and you only want to bind sshd to one address. | I was caught out trying to set up a linux router with multiple interfaces. I was unable to ssh to it from any os or client, but pings and ntp worked fine. It seems that for a host with multiple interfaces, you have to specify the addresses you want sshd to listen to explicitly. However subsequently I have not had this problem on other systems, but it can be used to advantage if you have a multihomed system and you only want to bind sshd to one address. | ||
| - | Port 22 | + | |
| - | ListenAddress 192.168.1.1 | + |  | 
| - | ListenAddress 192.168.2.1 | + | ListenAddress 192.168.1.1 | 
| - | # | + | ListenAddress 192.168.2.1 | 
| - | . | + | # | 
| - | . | + | . | 
| + | . | ||
| ==== Default Protocol ==== | ==== Default Protocol ==== | ||
linux/ssh.1735562606.txt.gz · Last modified:  by andrew
                
                