Re: Certificate placement in OpenSSH for Windows
Mike Erdely <[email protected]> Thu, 14 Dec 2006 22:17:06 -0500
| Newsgroups | gmane.network.ssh.windows |
|---|---|
| Message-ID | <[email protected]> |
Al Sparks wrote: > I'm trying to use scp to copy files from a SCO box to a Windows 2003 > box running OpenSSH. > > I generated a key on the SCO box and transferred the id_rsa.pub file > over to the OpenSSH box. I created a directory ".ssh" on what I think > is the home directory of the userid I'm sending to. OpenSSH for Windows is old. Generally, the home directory is "." when ssh'ing in. So, "scp id_rsa.pub server:.ssh/authorized_keys" will work (assuming id_rsa.pub is in your current directory and ".ssh" exists on the remote server and you're not worried about overwriting an existing .ssh/authorized_keys). Simply: # ssh server "mkdir .ssh" # cat id_rsa.pub | ssh server "cat - >> .ssh/authorized_keys" should do what you want. -ME -- List Info: http://erdelynet.com/ssh-l/ List Archives: http://erdelynet.com/archive/ssh-l/ To Unsubscribe: Mail mailto:[email protected]