ssh 명령을 입력하고 원격 호스트의 이름 및 로그인을 지정합니다.
mySystem% ssh myRemoteHost -l username
원격 호스트의 신뢰성을 묻는 질문이 표시될 수 있습니다.
The authenticity of host 'myRemoteHost' can't be established. RSA key fingerprint in md5 is: 04:9f:bd:fc:3d:3e:d2:e7:49:fd:6e:18:4f:9c:26 Are you sure you want to continue connecting(yes/no)?
일반적으로 이 프롬프트는 원격 호스트에 대한 초기 연결에 표시됩니다.
Are you sure you want to continue connecting(yes/no)? no
관리자가 전역 /etc/ssh/ssh_known_hosts 파일을 업데이트합니다. 업데이트된 ssh_known_hosts 파일은 이 프롬프트가 표시되지 않도록 합니다.
Are you sure you want to continue connecting(yes/no)? yes
Enter passphrase for key '/home/username/.ssh/id_rsa': <Type passphrase>
username@myRemoteHost's password: <Type password> Last login: Wed Sep 7 09:07:49 2011 from myLocalHost Oracle Corporation SunOS 5.11 September 2011 myRemoteHost%
보낸 명령이 암호화되고, 수신한 응답이 암호화됩니다.
완료되면 exit를 입력하거나 일반적인 셸 종료 방법을 사용합니다.
myRemoteHost% exit myRemoteHost% logout Connection to myRemoteHost closed mySystem%
이 예에서 jdoe는 두 시스템 모두에서 초기 사용자이며 Software Installation 권한 프로파일이 지정됩니다. jdoe는 원격 시스템에서 패키지 관리자 GUI를 사용하려고 합니다. X11Forwarding 키워드의 기본값이 계속 yes이고 xauth 패키지가 원격 시스템에 설치됩니다.
% ssh -l jdoe -X myRemoteHost jdoe@myRemoteHost's password: password Last login: Wed Sep 7 09:07:49 2011 from myLocalHost Oracle Corporation SunOS 5.11 September 2011 myRemoteHost% packagemanager &