SFTP configurationIts same procedure as we discussed in ssh.
1.Generate the key first
$ ssh-keygen -trsa
it will be create and stored in .ssh directory
2.copy the key to destination host.
$ ls -a
. .. authorized_keys id_rsa id_rsa.pub known_hosts
Here u need to copy the id_rsa.pub to destination host.
$ scp id_rsa.pub ram@172.1.00.00:~/.ssh/authorized_keys
ram@172.1.00.00's password:
id_rsa.pub 100% |*****************************| 233 00:00
3.do sftp to which host u need to do
$ sftp 172.1.00.00
Connecting to 172.1.00.00...
sftp>
You can do ftp with scure way now.