Changeset View
Changeset View
Standalone View
Standalone View
contrib/ssh-copy-id.1
.ig \" -*- nroff -*- | .ig \" -*- nroff -*- | ||||
Copyright (c) 1999-2013 hands.com Ltd. <http://hands.com/> | Copyright (c) 1999-2016 hands.com Ltd. <http://hands.com/> | ||||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | ||||
modification, are permitted provided that the following conditions | modification, are permitted provided that the following conditions | ||||
are met: | are met: | ||||
1. Redistributions of source code must retain the above copyright | 1. Redistributions of source code must retain the above copyright | ||||
notice, this list of conditions and the following disclaimer. | notice, this list of conditions and the following disclaimer. | ||||
2. Redistributions in binary form must reproduce the above copyright | 2. Redistributions in binary form must reproduce the above copyright | ||||
notice, this list of conditions and the following disclaimer in the | notice, this list of conditions and the following disclaimer in the | ||||
▲ Show 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | |||||
unprompted, whereas if you only have the old key(s) enabled, you'll be | unprompted, whereas if you only have the old key(s) enabled, you'll be | ||||
asked for confirmation, which is your cue to log back out and run | asked for confirmation, which is your cue to log back out and run | ||||
.Pp | .Pp | ||||
.D1 user@newclient$ ssh-copy-id -i someserver | .D1 user@newclient$ ssh-copy-id -i someserver | ||||
.Pp | .Pp | ||||
The reason you might want to specify the -i option in this case is to | The reason you might want to specify the -i option in this case is to | ||||
ensure that the comment on the installed key is the one from the | ensure that the comment on the installed key is the one from the | ||||
.Pa .pub | .Pa .pub | ||||
file, rather than just the filename that was loaded into you agent. | file, rather than just the filename that was loaded into your agent. | ||||
It also ensures that only the id you intended is installed, rather than | It also ensures that only the id you intended is installed, rather than | ||||
all the keys that you have in your | all the keys that you have in your | ||||
.Xr ssh-agent 1 . | .Xr ssh-agent 1 . | ||||
Of course, you can specify another id, or use the contents of the | Of course, you can specify another id, or use the contents of the | ||||
.Xr ssh-agent 1 | .Xr ssh-agent 1 | ||||
as you prefer. | as you prefer. | ||||
.Pp | .Pp | ||||
Having mentioned | Having mentioned | ||||
Show All 22 Lines |