During Quick Setup, another username may have been selected. Use that username to log in.
login as: rsaadmin Using keyboard-interactive authentication. Password: <enter operating system password> Last login: Mon Feb 12 15:51:57 2018 from jumphost.vcloud.local RSA Authentication Manager Installation Directory: /opt/rsa/am rsaadmin@am82p:~> sudo su - root rsaadmin's password: <enter operating system password>
am82p:~ #chkconfig -f --add sshd sshd 0:off 1:off 2:off 3:on 4:off 5:on 6:off am82p:~ # /etc/init.d/sshd start Checking for missing server keys in /etc/ssh Starting SSH daemon done am82p:~ # iptables -A sshd -i eth0 -p tcp --dport 22 -j ACCEPT
am82p:~ #chkconfig -f --del sshd sshd 0:off 1:off 2:off 3:off 4:off 5:off 6:off am82p:~ # /etc/init.d/sshd stop Shutting the listening SSH daemon done am82p:~ # iptables -D sshd -i eth0 -p tcp --dport 22 -j ACCEPT
Enable SSH with one command
With the syntax below, SSH can be shut down then restarted with one command:
/opt/rsa/am/utils/bin/appliance/configureSSH.sh enable <Authentication Manager IP address>
am82p:~ # /opt/rsa/am/utils/bin/appliance/configureSSH.sh enable 192.168.2.50 Shutting down the listening SSH daemon done Checking for missing server keys in /etc/ssh Starting SSH daemon done Saving iptables configuration done Saving iptables configuration done
am82p:~ # netstat -atup | grep sshd tcp 0 0 *:ssh *:* LISTEN 29516/sshd tcp 0 64 am82p.vcloud.local:ssh jumphost.vcloud.l:39030 ESTABLISHED 29070/sshd: rsaadmin tcp 0 0 *:ssh *:* LISTEN 29516/sshd am82p:~ #