0

I am following a guide to setup wordpress, one of the steps instructs to copy the values of https://api.wordpress.org/secret-key/1.1/salt/ to a section in wp-config.php. I can connect via PuTTY only remotely to this server and I am using the nano editor. The question is how to do this without typing each individual character into the wp-config.

On an MS-DOS Windows console you can mark the text and then copy it. PuTTY has the option to copy everything to clipboard, but Ctrl+U (paste) does not work, saying “cut buffer is empty”.

3
  • Why not use wget or curl to just download the content straight into the file?
    – muru
    Nov 3, 2021 at 2:34
  • this is the command (curl -s api.wordpress.org/secret-key/1.1/salt) I can see the output as they say in the tutorial but the next step is to copy it to the wp-config that I do not how how to do it, I open nano but nothing can be pasted to nano editor with sudo access.
    – jvsale70
    Nov 3, 2021 at 2:44
  • curl -s https://api.wordpress.org/secret-key/1.1/salt >> wp-config.php and then edit it to move around the salt as needed
    – muru
    Nov 3, 2021 at 3:22

1 Answer 1

0

The Ctrl+U shortcut is to paste text that was copied (or cut) from within nano. You will want to use one of these:

  1. Ctrl+Shift+V
  2. Shift+Insert

That’ll do what you’re looking for 👍🏻

2
  • thank very much, 'Shift + Insert' worked.
    – jvsale70
    Nov 3, 2021 at 3:25
  • What’s a mouse? Haven’t used one in 15+ years 😉
    – matigo
    Nov 3, 2021 at 3:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .