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 telnet and ftp, 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_conf file.
  • Ensure StrictModes yes for 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 ssh and/or ps -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 -r option to recursively transfer all files and directories inside the path.
scp -r /localpath/dirname remoteuser@remotehost:/remotepath/dirfortransfer

Connecting with Microsoft Windows OS