Linux Links‎ > ‎

SSH

Web Browser SSH client:

configure /etc/security/access.conf
configure /etc/pam.d/ssh (uncomment line)

Or in a better way you can edit /etc/ssh/sshd_config to something like this:
AllowUsers chris user1@192.168.0.* user2@192.168.0.* user3@192.168.0.*
to restrict users to their home directory do something like this:

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

AllowUsers psdc icdc *@172.17.8.* *@172.17.0.*

# override default of no subsystems
Subsystem   sftp    /usr/lib/openssh/sftp-server
Subsystem   stfp    internal-sftp

Match Group sis
    ChrootDirectory /file-transfer/icDCtransfer
    ForceCommand internal-sftp
    PermitTunnel no
    AllowAgentForwarding no
    AllowTcpForwarding no
    X11Forwarding no

Match Group sisps
    ChrootDirectory /file-transfer/psDCtransfer
    ForceCommand internal-sftp
    PermitTunnel no
    AllowAgentForwarding no
    AllowTcpForwarding no
    X11Forwarding no




Comments