Links and References - Oracle Linux Tips and Tricks: Using SSH
Secure Shell (SSH) and Secure Copy (SCP)
- Developed in 1995, provided security through encryption.
- Unlike
telnetandftp, user credentials and file contents are encrypted. - Also used by Secure Copy (
scp)
Oracle Solaris SSH
- OpenSSH in Solaris 11.3
- For Solaris 11.3 both OpenSSH and SunSSH are both supplied.
- SunSSH:
pkg:/network/ssh - OpenSSH:
pkg:/network/openssh - Both packages deliver the same
svc:/network/ssh:default
Configuring SSH
- SSH configuration stored in
/etc/ssh/sshd_conffile. - Ensure
StrictModes yesfor secure permissions on users .ssh directory.
Using SSH on Oracle Solaris
- SSH is automatically installed and enabled by default with root access disabled.
- Can check with
svcs sshand/orps -ef|grep ssh - Can enable/disable with:
svcadm disable ssh
svcadm enable ssh
Using SCP
- Syntax:
scp /localpath/localfilename remoteuser@remotehost:/remotepath/remotefilename
- Use the
-roption to recursively transfer all files and directories inside the path.
scp -r /localpath/dirname remoteuser@remotehost:/remotepath/dirfortransfer