Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Entering data into a file from SSH with pico

3:15 am on Feb 9, 2009 (gmt 0)

New User

10+ Year Member

joined:July 30, 2004
posts: 13
votes: 0

Was attempting to setup an authorized_keys2 file under .ssh with 600 and 700 file/directory permissions respectively...not a problem.

The keys that I entered in the authorized_keys2 file did not seem to paste correctly with pico.

What I did:

1. Copied the keys from my text editor in a Fedora 10 desktop.
2. ssh'd to my server and set up the directory and file
3. pico authorized_keys2 and pasted the keys that I copied from my desktop text editor and set .ssh and the file permissions correctly.
4. Tried to ssh into the server with the appropriate user name but was disconnected from the server.
5. OK...so used gFTP to paste the content using gedit
6. No problem...was then able to login.


How do I paste the appropriate keys in authorized_keys2 in one line per key with pico using SSH?