Setting Up public key on Windows for ssh/scp

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Setting Up public key on Windows for ssh/scp
# 1  
Old 07-04-2007
Setting Up public key on Windows for ssh/scp


I am trying to scp a file from our Unix server to the local Windows machine.I have created the key pair in Unix server using ssh-keygen command in unix.

But I am not sure where can we put the public key(generated on Unix) in Windows machine so that scp from Unix machine to Windows is possible.In fact, my intention is to write a shell script which automates the file transfer to Windows using scp.Is there any such directories/files will be creating by Putty tool for putting the public keys?Eventhough I couldn't find that , I found some entries in Registry for that which I am not quite sure of how to add that.

I could do the otherway round (scp from Windows to Unix) successfully by creating key pair using Putty -keygen in Windows and adding the public key in Unix server in the ~/.ssh/authorized_keys file.

Any ideas? I heard that if I install openSSH s/w in Windows, which will create file like authorised_keys in Windows where we can put the public key we generated in Unix.But due to certain limitations, I can't install that s/w in Windows.

Thank you.

Last edited by dennis.jacob; 07-04-2007 at 05:49 AM.. Reason: To give more meaningful title
# 2  
Old 07-04-2007
The public key goes into the user's home directory. It makes no difference if it is Windows or a Unix-like system
# 3  
Old 07-04-2007
ok..If that is the case, which should be the file we have to add the public key in the home directory in Windows? In UNIX, we have .ssh directory for this and known_hosts and authorized_keys available for adding hosts and public key resp.
# 4  
Old 07-04-2007
You have to follow the same procedure with Windows too. You need not add anything to the known_hosts file, as this will get added the first time you connect to the remote server.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Public and Private Key generation for scp

Hi, What tool is used to generate public and private keys for SCP? Do you have an example script that generates these keys, puts them in files and then another example script that references them from SCP? Thanks, (9 Replies)
Discussion started by: Astrocloud
9 Replies

2. UNIX for Advanced & Expert Users

SSH public key failing without error message

My password-free ssh connection has worked in the past but has stopped working and I can't get it going again. The files in .ssh on both source and target are set to 600: drwx------ 2 ingres 1024 Mar 2 13:57 . drwxr-xr-x 25 ingres 2048 Mar 29 09:38 .. -rw------- 1 ingres ... (9 Replies)
Discussion started by: Catullus
9 Replies

3. Solaris

Solaris 8 ssh public key authentication issue - Server refused our key

Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks. ... (1 Reply)
Discussion started by: aixlover
1 Replies

4. Red Hat

SSH Public key Authentication Issue

Hi All; I have an issue with password less authentication via ssh ( v2) I have two servers Server A and Server B, following are the server details Server A OS - HP UX B.11.11 U 9000/800 SSH - OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005 HP-UX Secure Shell-A.04.30.000, HP-UX... (3 Replies)
Discussion started by: maverick_here
3 Replies

5. Solaris

Setting up SSH key on windows box.

Hello all. This is my first post so please be gentle. I have a situation where I am trying to run a windows batch file to SSH/FTP from a Windows box to a Solaris server. The batch file is not working because it can not find the SSH key. Does any one know how to set up an SSH key on a... (8 Replies)
Discussion started by: UofU
8 Replies

6. AIX

ssh public key setup questions.

Hi all, I have N number of AIX hosts, where I need to login frequently and do some routine tasks (run some scripts). I need to setup ssh public/private key, so I can auto-login via a master (wrapper) script and run each script in each server. I am trying to setup/generate ssh keys, but am... (6 Replies)
Discussion started by: haroon_a
6 Replies

7. Shell Programming and Scripting

Generate Public Key when the server is not ssh enabled

I am writing a script that needs to access various servers some of which are not ssh enabled. In order to access the ssh enabled servers I am using the following command to generate the public key : ssh-keygen -t rsa Is there a similar command for the other servers as well. If I try to use... (1 Reply)
Discussion started by: ravneet123
1 Replies

8. Windows & DOS: Issues & Discussions

Public/Private Key SSH from UNIX to Windows (Cygwin)

Hello all, I have a bit of trouble working a passwordless SSH from UNIX to Cygwin running windows 2k3. Here are some details. I AM able to SSH from the Windows box to the UNIX box using the keys. Also, I'm able to SSH from UNIX to Windows w/o the keys. However, when I try to do it with the keys... (9 Replies)
Discussion started by: kclerks11
9 Replies

9. UNIX for Advanced & Expert Users

SSH - Public key

When should one have to generate a public key on a Server when the public key is already created and used by other clients? Thanks, Rahul. (6 Replies)
Discussion started by: rahulrathod
6 Replies

10. Shell Programming and Scripting

SSH Public key method

do we need root access for the remote server to ssh without a password(i.e by using method)??? (1 Reply)
Discussion started by: roshanjain2
1 Replies
Login or Register to Ask a Question

Featured Tech Videos