| Summary: | Local port forwarding does not work in a particular condition. | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Adam <seifer1983> |
| Component: | sshd | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | djm |
| Priority: | P2 | ||
| Version: | 5.8p1 | ||
| Hardware: | Itanium | ||
| OS: | HP-UX | ||
|
Description
Adam
2011-11-29 18:39:24 AEDT
This looks like a misconfiguration: When you are in chroot mode, you will need to populate the chroot with whatever support files your OS needs to support name resolution. This may include nsswitch.conf, resolv.conf, hosts and possibly even shared objects for NSS (depending on the platform). If you are talking about "/opt/ssh/utils/ssh_chroot_setup.sh", yes, I've used this script to init chroot directory, which is /adamroot in my test. So there are two nsswitch.conf files at /adamroot/etc/ and /etc/. I changed "ipnodes" in "/etc/nsswitch.conf", removing "nds" part. Meantime, "ipnodes" in "/adamroot/etc/nsswitch.conf" as the default value, "nds nis file". I also had the tunneling problem in this scenario. Here's another interesting part. If I put nds at the beginning of ipnodes, tunneling will be OK. But if I put either of other two methods at the beginning, but still have dns behind, I will still has this problem. Looks that even the order of "resolve from" will affect the results. If "dns nis files" passed, why just something like "files dns nis" should failed? (In reply to comment #1) > This looks like a misconfiguration: > > When you are in chroot mode, you will need to populate the chroot with > whatever support files your OS needs to support name resolution. This > may include nsswitch.conf, resolv.conf, hosts and possibly even shared > objects for NSS (depending on the platform). |