LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-23-2003, 10:34 AM   #1
sn9ke_eyes
Member
 
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. id_rsa.pub or id_dsa.pub, 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.
 
  


Reply



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 02:50 AM
Slackware 10.2 Tips Unduhtakuh Slackware 4 09-25-2005 03:22 PM
Tips lukepiewalker Linux - Newbie 4 08-03-2005 06:18 AM
Any tips? little_ball Linux - Networking 3 01-05-2004 11:42 AM
Tips Mia Linux - Newbie 0 12-07-2001 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:08 AM.

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