SFTP Does not Use the "default" Namespace

Follow

Issue

When I ssh to the management interface, eth0 lands in the default namespace. However, when I sftp to the management interface, eth0 lands in the management namespace. I expect that when I either ssh or sftp to the management interface, I should land in the default namespace.

Environment

  • Cumulus Linux 2.2.x

Resolution

A bug (CM-3593) has been opened to track the engineering resolution of this issue. This article will be updated when the fix to this issue is on the release roadmap, and when the fix has been released. Click Follow above to be notified when this article is updated.

Workaround

Edit /etc/netns/mgmt/ssh/sshd_config.

Change:

Subsystem sftp /usr/lib/openssh/sftp-server

To:

Subsystem sftp ip netns exec default /usr/lib/openssh/sftp-server

References

Have more questions? Submit a request

Comments

Powered by Zendesk