sshd not reconfigured by /etc/network
Bug #103436 reported by
Perry E. Metzger
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Fix Released
|
Wishlist
|
Colin Watson |
Bug Description
Binary package hint: openssh-server
If you have a device that roams a lot (like a laptop), you want daemons like sshd to be tweaked/restarted by scripts in /etc/network so that they re-open the socket they listen on when the network address changes. (Yes, some of us really do want to be able to remotely log in to our laptops after we bring them home and they roam onto the home WiFi network etc.)
Right now there is no sshd script in /etc/network/* but it would be trivial to create one and add it to the package. For sshd, it would be simplest just to restart the daemon.
Related branches
Changed in openssh: | |
importance: | Undecided → Wishlist |
status: | Unconfirmed → Confirmed |
To post a comment you must log in.
Colin Watson <email address hidden> writes:
> ** Changed in: openssh (Ubuntu)
> Importance: Undecided => Wishlist
> Status: Unconfirmed => Confirmed
FYI, this need not stay "wishlist" for long -- it will take
less than five minutes to actually add ssh.
Just to make it clear:
in /etc/network/ if-up.d, place a file named "ssh" saying this or a
slight variant:
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
#!/bin/sh
case $ADDRFAM in
/etc/ init.d/ ssh restart || exit $? ------- ------- ------- ------- ------- ------- ------- ------- -------
inet*)
if [ -x "/etc/init.d/ssh" ]; then
fi
;;
esac
-------
This really will take no time. Please fix it -- it will make the world
a better place and close an open bug.
Perry