To ensure the security of RSA public key authentication, the length of the 
RSA key pairs must be greater or equal to 768 bits when generating RSA key 
pairs. 
Operations on a Server 
After keys are generated on the client, the  SSH server, namely the network 
device, needs to copy the client public-key file to flash, and associate the file 
with the SSH user name. Each user can associate with an RSA public key and 
a DSA public key. See the following contents. 
Ruijie# configure terminal  
Ruijie(config)# ip ssh peer test public-key rsa flash:rsa.pub 
Ruijie(config)# ip ssh peer test public-key dsa flash:dsa.pub 
In this  way,  the  client can log  in to  the network device using  the public-key 
based authentication method.   
Using SSH to Transfer Files 
Operations on a Server 
Secure  CoPy  (SCP)  is  used  in  SSH  file  transfer.  The  SCP  server  function 
needs to be enabled on the network device, so that the client can use SCP to 
transfer files to the network device, or download files from the network device. 
See the following contents. 
Ruijie# configure terminal  
Ruijie(config)# ip scp server enable