One of my unfortunate users decided to put a slash at the end of his username "username/". Is there any way to use ssh to specify that the slash is part of the username? I've tried every combination of escape characters that I can think of but sshd always removes the slash. Examples: ssh -l "username/" <ip address> ssh "username/"@<ip address> ssh 'username/'@<ip address> ssh username\/@<ip address> ssh -o User="username/" <ip address> I've tried many more combinations, but have not had any luck. The sshd version is 1:5.1p1-5 and upgrading is not an option. No other remote access is allowed except for this one user, so will have to make a field visit if I can't get it working. Thank you for your time!
On Mon, Oct 27, 2014 at 6:02 PM, G. G. <gwartney at gmail.com> wrote:> One of my unfortunate users decided to put a slash at the end of his > username "username/". Is there any way to use ssh to specify that the slash > is part of the username? I've tried every combination of escape characters > that I can think of but sshd always removes the slash.On which operating system was this allowed????> Examples: > ssh -l "username/" <ip address> > ssh "username/"@<ip address> > ssh 'username/'@<ip address> > ssh username\/@<ip address> > ssh -o User="username/" <ip address> > > I've tried many more combinations, but have not had any luck. The sshd > version is 1:5.1p1-5 and upgrading is not an option.Change the username is probalby your fastest solution. The normal "useradd' commands should have blocked this.> No other remote access is allowed except for this one user, so will have to > make a field visit if I can't get it working. Thank you for your time! > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
On Mon, Oct 27, 2014 at 6:02 PM, G. G. <gwartney at gmail.com> wrote:> One of my unfortunate users decided to put a slash at the end of his > username "username/". Is there any way to use ssh to specify that the slash > is part of the username? I've tried every combination of escape characters > that I can think of but sshd always removes the slash.I just built stock openssh-5.5p1's on a recent Fedora, and sshd actually accepts it if you manually edit /etc/{passwd,shadow}, both with and without PAM enabled. $ ssh -p 2022 -l "testuser/" localhost Password: [...] USER=testuser/ LOGNAME=testuser/ Sorry, but whatever the problem is, it's not in the stock sshd. There may be some modification in the sshd, or it could be some other problem. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.