Displaying 6 results from an estimated 6 matches for "cliuser".
2017 Feb 20
2
second ssh connection for the first ssh request
Hi I changed sshd_config to run script, .profile for user cliuser like
this:
Match user cliuser
ForceCommand . /home/cliuser/.profile
cat /home/cliuser/.profile
#!/bin/sh
if [[ "$1" == "-c" ]]; then
exit 5
fi
trap 'exit' 1 2 3 4 15
ssh -tt secadmin at 127.0.0.1 -p 2024
exit
Now, with this, i wanted connections to sshd coming on...
2017 Jul 08
4
force port redirection for list of users
...ection should be
redirected to 2024 instead of port 22.
root, ftp, guest
So
ssh root at ip // should be sent to sshd running at port 22
ssh otheruser at ip // should be sent to sshd running at port 2024
I know that we can do something like this:
ssh -o ProxyCommand='ssh -W localhost:2024 cliuser at ip' otheruser@
<secadmin at 10.220.167.184>ip
will take to otheruser login to port 2024 after sshd_config settings
Match user cliuser
MaxSessions 0
PermitOpen localhost:2024
This requires long command at the client side . Can this be made simple like
ssh otheruser at ip au...
2017 Jul 18
2
force port redirection for list of users
...; > So
> > ssh root at ip // should be sent to sshd running at port 22
> > ssh otheruser at ip // should be sent to sshd running at port 2024
> >
> >
> > I know that we can do something like this:
> >
> > ssh -o ProxyCommand='ssh -W localhost:2024 cliuser at ip' otheruser@
> > <secadmin at 10.220.167.184>ip
> >
> > will take to otheruser login to port 2024 after sshd_config settings
> >
> > Match user cliuser
> >
> > MaxSessions 0
> >
> > PermitOpen localhost:2024
> >
> >...
2017 Jan 31
2
sshd custom shell script for specifc user
...t exist, using fixed modulus
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user cliuser service ssh-connection method none
debug1: attempt 0 failures 0
debug1: user customuser matched 'User customuser' at line 35
Could not get shadow information for customuser
Accepted none for cliuser from 10.220.82.17 port 54086 ssh2
debug1: Entering interactive session for SSH2.
debug1: ser...
2017 Feb 21
1
second ssh connection for the first ssh request
...Fri Jul 22 12:59:33 PDT 2016 i686 GNU/Linux
On Tue, Feb 21, 2017 at 3:39 AM, Darren Tucker <dtucker at zip.com.au> wrote:
> On Tue, Feb 21, 2017 at 4:19 AM, Sudarshan Soma <sudarshan12s at gmail.com>
> wrote:
> > Hi I changed sshd_config to run script, .profile for user cliuser like
>
> What platform is this on? If it's Solaris, try commenting out
> SSHD_ACQUIRES_CTTY from config.h and recompiling.
>
> --
> Darren Tucker (dtucker at zip.com.au)
> GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA (new)
> Good judgement c...
2017 Jan 31
2
sshd custom shell script for specifc user
Thanks Darren, the intention to do this :
allow users to access my own shell/CLI(including authentication) on port
22.
their firewall settings doesnt allow anything other than port 22, so I
would internally redirect to port 1023 when customuser is provided.
I will try enabling logs, thanks.
On Tue, Jan 31, 2017 at 5:10 AM, Darren Tucker <dtucker at zip.com.au> wrote:
> On Tue, Jan 31,