mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor(multi-server): copy the right value
This commit is contained in:
@@ -179,7 +179,9 @@ export const SetupServer = ({ serverId }: Props) => {
|
|||||||
type="button"
|
type="button"
|
||||||
className="absolute right-2 top-2"
|
className="absolute right-2 top-2"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
copy(server?.sshKey?.publicKey || "");
|
copy(
|
||||||
|
`echo "${server?.sshKey?.publicKey}" >> ~/.ssh/authorized_keys`,
|
||||||
|
);
|
||||||
toast.success("Copied to clipboard");
|
toast.success("Copied to clipboard");
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user