mirror of
				https://github.com/vyos/vyos-documentation.git
				synced 2025-10-26 08:41:46 +01:00 
			
		
		
		
	Deprecate loadkey
				
					
				
			This commit is contained in:
		
							parent
							
								
									8f776a9e23
								
							
						
					
					
						commit
						61bd4d0452
					
				| @ -156,3 +156,32 @@ Operation | |||||||
|   Two new files ``/config/auth/id_rsa_rpki`` and |   Two new files ``/config/auth/id_rsa_rpki`` and | ||||||
|   ``/config/auth/id_rsa_rpki.pub`` |   ``/config/auth/id_rsa_rpki.pub`` | ||||||
|   will be created. |   will be created. | ||||||
|  | 
 | ||||||
|  | .. opcmd:: generate public-key-commands name <username> path <location> | ||||||
|  | 
 | ||||||
|  |    Generate the configuration mode commands to add a public key for | ||||||
|  |    :ref:`ssh_key_based_authentication`. | ||||||
|  |    `<location>` can be a local path or a URL pointing at a remote file. | ||||||
|  |    Supported remote protocols are FTP, HTTP, HTTPS, SCP/SFTP and TFTP. | ||||||
|  | 
 | ||||||
|  |   Example: | ||||||
|  | 
 | ||||||
|  |   .. code-block:: none | ||||||
|  | 
 | ||||||
|  |     alyssa@vyos:~$ generate public-key-commands name alyssa path sftp://example.net/home/alyssa/.ssh/id_rsa.pub | ||||||
|  |     # To add this key as an embedded key, run the following commands: | ||||||
|  |     configure | ||||||
|  |     set system login user alyssa authentication public-keys alyssa@example.net key AAA... | ||||||
|  |     set system login user alyssa authentication public-keys alyssa@example.net type ssh-rsa | ||||||
|  |     commit | ||||||
|  |     save | ||||||
|  |     exit | ||||||
|  | 
 | ||||||
|  |     ben@vyos:~$ generate public-key-command user ben path ~/.ssh/id_rsa.pub | ||||||
|  |     # To add this key as an embedded key, run the following commands: | ||||||
|  |     configure | ||||||
|  |     set system login user ben authentication public-keys ben@vyos key AAA... | ||||||
|  |     set system login user ben authentication public-keys ben@vyos type ssh-dss | ||||||
|  |     commit | ||||||
|  |     save | ||||||
|  |     exit | ||||||
|  | |||||||
| @ -76,6 +76,10 @@ The third part is simply an identifier, and is for your own reference. | |||||||
| 
 | 
 | ||||||
| .. cfgcmd:: loadkey <username> <location> | .. cfgcmd:: loadkey <username> <location> | ||||||
| 
 | 
 | ||||||
|  |    **Deprecation notice:** ``loadkey`` has been deprecated in favour of | ||||||
|  |    :opcmd:`generate public-key-commands` and will be removed in a future | ||||||
|  |    version. See :ref:`ssh:operation`. | ||||||
|  | 
 | ||||||
|    SSH keys can not only be specified on the command-line but also loaded for |    SSH keys can not only be specified on the command-line but also loaded for | ||||||
|    a given user with `<username>` from a file pointed to by `<location>.` Keys |    a given user with `<username>` from a file pointed to by `<location>.` Keys | ||||||
|    can be either loaded from local filesystem or any given remote location |    can be either loaded from local filesystem or any given remote location | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user