Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Kevin Denis
July 19, 2013, 2:37 pm
rate this thread
I have a setup like this:
Router --- ServerB
I create users on routers, and they ssh to router, then to Servers.
I don't want that they keep access to router, so I wrote a little
script chooser.sh which make basically a:
(function to propose to choose between servers) and
case $choice in
If I put that in login shell, it works well. But, I want to put this script
in a Forcecommand directive.
So my /etc/ssh/sshd_config contains a match block:
Match User user
If I keep the script, it doesn't work because no tty is allocated:
stdin: is not a tty
I can force the allocation of tty by changing the lines:
ssh -tt user@servera
but the output is not very nice, every line is doubled:
root@router:~# (I press return)
So, how can I force command to my chooser and having tty allocated?
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum