linux:ssh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:ssh [30/12/2024 12:43] – [ssh key authentication with LDAP] 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 ==== | ||
Line 92: | Line 93: | ||
===== Hijacking an ssh session ===== | ===== Hijacking an ssh session ===== | ||
- | Suppoer | + | Suppose |
root can see from '' | root can see from '' |
linux/ssh.1735562589.txt.gz · Last modified: by andrew