sftp using private and public keys

hi guys , i have few files i have to do sftp, the public and private key work like a magic , no problem at all

the syntax is as below

sftp -0 identityfile=~/ure/blsl/loc2/.ssh/id_rsa_ssh1 ssh1@remote >log_dir/file.timestamp<<end
lcd folder
cd folder 
put *
quit
end

================
my question is i dont understand what is id_rsa_ssh1 , because when u generate rsa private key , only id_rsa is generated , i am presuming they have changed the file name
and my second question is why in user@remote i.e., ssh1@remote , ssh1 is given as user (is ssh1 , the authorized keys in remote?), which is the same as name given in id_rsa_ssh. please let me know :wall:

What os(unix, linux) and what command(ssh-keygen????) did you use to generate the private/public key pair?

1 Like

the os is sun solaris 5.03 the script was already there, i am trying to automate a process based on the same

The private key genertated for user(ssh1) should be in the file(~/.ssh/id_rsa) and the public key in file(~/.ssh/id_rsa.pub).
The public key is sent to the remote host and inserted into file(authorized_keys).
Check out the info on these links:
http://shebang.brandonmintern.com/tips-for-remote-unix-work-ssh-screen-and-vnc
SSH Key based authentication setup from openSSH to SSH2 - saylinux.net
Chau Chee Yang Technical Blog: SSH: Public Key Authentication with OpenSSH