Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-23-2003, 11:34 AM   #1
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
Post 2 ssh tips or duhs

after struggling with ssh for a few days I finally figured out a couple of things that caused problems for me and I would like to spare others the grief.

1.) When you create an authorized_keys file, chmod it so that only user has write permissions. I know this is obvious, but depending on your umask when you create the file, it may not default to those permissions. (chmod 644 or 600)

2.) If you are copying and pasting a public key file into your authorized_keys file, i.e. or, make sure then entry is only 1 line. This public key should only be one super long line, not 2. It can wrap to 2 lines, but it is only one line.

If you used vi to copy and paste, you can enter :set nu yes to view line numbers. If you have more than one line number for the same key, you can use J to join the two together and then delete the space that is used to join the lines. Hope this helps someone.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
Slackware 10.2 Tips Unduhtakuh Slackware 4 09-25-2005 04:22 PM
Tips lukepiewalker Linux - Newbie 4 08-03-2005 07:18 AM
Any tips? little_ball Linux - Networking 3 01-05-2004 12:42 PM
Tips Mia Linux - Newbie 0 12-07-2001 01:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration