Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Ssh And Scp Without Typing A Password Each Time

DZone's Guide to

Ssh And Scp Without Typing A Password Each Time

·
Free Resource
* You can create and exchange ssh keys to avoid repeatedly typing your password.
Source:      ssh-keygen -t dsa                                     Type this once per log-in session
Source:      Now copy the .ssh/id_dsa.pub file to 
  
   .
Source:      scp .ssh/id_dsa.pub userid@
   
    :tempid        we've renamed it tempid.
Destination: cat tempid >> .ssh/authorized_keys                     
add the contents of tempid to .ssh/authorized_keys.
Destination: rm tempid. 

   
  
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}