LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-05-2010, 05:32 PM   #1
mcdown75
LQ Newbie
 
Registered: Jun 2009
Location: Central Missouri
Distribution: Zen Linux
Posts: 8

Rep: Reputation: 0
Amanda Backup Permission denied (publickey,gssapi-with-mic,password). error


I can ssh from each server to the other. I have generated the keys and added them to the .ssh/authorized_keys file. I can log back and forth from the client to the server for Amanda Backup and vice versa. Every time I run the amcheck I get this:

amcheck mydb
Amanda Tape Server Host Check
-----------------------------
WARNING: holding disk /path/to/dumps/amanda: only 64876544 KB available (524288000 KB requested)
read label `daily_full_01-05', date `20100204200003'.
label "daily_full_01-05" doesn't match "^mydb_full-[0-9][0-9]*$".
(expecting a new tape)
WARNING: tapecycle (1) <= runspercycle (1).
Server check took 6.837 seconds
Permission denied (publickey,gssapi-with-mic,password).

Amanda Backup Client Hosts Check
--------------------------------
WARNING: mydb: selfcheck request failed: EOF on read from mydb
Client check: 1 host checked in 0.210 seconds. 1 problem found.

(brought to you by Amanda 2.6.1p1)

All I am trying to do is backup one server, one time. This is really frustrating. Any help is very appreciated.
 
Old 02-06-2010, 12:08 AM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
You have several problems with your configuration that you'll need to work out. It's hard to tell where to start without more information, but http://wiki.zmanda.com/index.php/Quick_start is a good guide that you can walk through step by step and check your setup. You have at least 5 configuration errors to straighten out going off the error messages. Take them one at a time. From the quick start you can jump out to other pages in the wiki for more detail.

What version of Amanda on what OS? Did you install from a package or build from source? If you built from source, did you do the ./configure --with-auth=ssh? (the --help will tell you what that should be. I'm just going from memory.)

If you configured amanda with auth ssh (on both the server and the client), and you did an ssh from the server to the client to set known hosts, and you copied the pub key from the server to the client and put it in authorized keys, and you can ssh from server to client using that key, and you have your dump type from the disklist set up in amanda.conf with auth ssh and pointing at the key file, then that part should work. That's only one of the configuration issues though.

Another is that you labeled your tape or virtual tape with a different label than the label string in your amanda.conf. Your tape cycle needs to be greater than your runspercycle. And so on.

After you work through the quick start guid and straighten out as much as you can, let us know where you are and what the messages are at that point. If you get to a point where you have trouble figuring out what is happening, it often helps to look in /tmp/amanda for the debug logs. They give more detail on errors.
 
Old 02-08-2010, 08:33 AM   #3
mcdown75
LQ Newbie
 
Registered: Jun 2009
Location: Central Missouri
Distribution: Zen Linux
Posts: 8

Original Poster
Rep: Reputation: 0
Here is the OS and Amanda version info:
Linux version 2.6.9-89.0.0.0.1.ELsmp (mockbuild@ca-build10.us.oracle.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-11.0.1)) #1 SMP Tue May 19 05:31:20 EDT 2009
VERSION="Amanda-2.6.1p1"

I have several Amanda configurations successfully running right now. I have followed the Quick Start Guide and the 15 minute guide to get them set up. This is the first time I am trying to connect to a different server. The other configurations all use rsync to backup to the local drive and then run amanda on the same server.

I know I left the daily tape in the drive when I ran this. I am swapping it out for the full backup tape right now. The other thing that bugs me is when I go to the debug files, there is nothing for this configuration. I have debug files for my other configurations, but nothing for this one.

Here is the dump type I have defined:
define dumptype global {
comment "Global definitions"
# auth "bsdtcp"
auth "ssh"
client_username "amanda"
ssh_keys "/var/lib/amanda/.ssh/id_rsa_dump"
amandad_path "/usr/lib/amanda/"

}

What else can I show you?

Nikki
 
Old 02-08-2010, 10:35 AM   #4
mcdown75
LQ Newbie
 
Registered: Jun 2009
Location: Central Missouri
Distribution: Zen Linux
Posts: 8

Original Poster
Rep: Reputation: 0
Here is the error message with the proper tape. I also am aware that I have less room that it is requesting. That is another issue we are working on. It is enough for the test I plan to run.

Amanda Tape Server Host Check
-----------------------------
WARNING: holding disk /path/to directory/dumps/amanda: only 37580800 KB available (524288000 KB requested)
read label `db_full-01', date `X'.
NOTE: skipping tape-writable test
Tape db_full-01 label ok
WARNING: tapecycle (1) <= runspercycle (1).
Server check took 0.068 seconds
Permission denied (publickey,gssapi-with-mic,password).

Amanda Backup Client Hosts Check
--------------------------------
WARNING: db: selfcheck request failed: EOF on read from db
Client check: 1 host checked in 0.196 seconds. 1 problem found.
 
Old 02-08-2010, 03:57 PM   #5
mcdown75
LQ Newbie
 
Registered: Jun 2009
Location: Central Missouri
Distribution: Zen Linux
Posts: 8

Original Poster
Rep: Reputation: 0
Well, I have resolved my problem. I could not get ssh to work. Yum installs an old version of Amanda Backup on the client that does not have bsdtcp on it. I uninstalled the old version and reinstalled the latest version of Amanda Backup (2.6.1p2) Then I followed the 15 minute guide and had it up and working in a matter of minutes. I would still be interested in knowing what caused that error, but for now, I'm moving again.

Nikki
 
Old 02-09-2010, 08:29 AM   #6
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
Glad to hear you got it worked out. It takes too long to get new versions into various distribution's package management schemes. On my Ubuntu systems, I don't use apt-get for critical packages - the Amanda version was older than what I had installed on my Solaris systems more than 2 years ago. I install them from source and make sure the source matches across my systems. Somewhere within the early 2.5 versions, there may have been an incompatibility compared to the 2.6 versions with respect to the authentication you were trying to do, but I'd have to refer to the Amanda developers to fact check that.
 
Old 07-10-2014, 12:42 PM   #7
clcbluemont
Member
 
Registered: Feb 2009
Distribution: Slackware
Posts: 95

Rep: Reputation: 15
I had the same problem and could not find the solution in the forum, so I am posting to this old post. If you can ssh as amandabackup without a password to the client then ssh is setup correctly, but my problem was that I did not have my ssh_keys setting in amanda.conf pointing to the private key.
 
  


Reply


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 -- Permission denied (publickey,password,keyboard-interactive). davidkline Linux - Networking 11 08-20-2014 03:19 PM
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-inte ract MilanK Linux - Newbie 1 03-20-2012 04:44 AM
ssh client say me Permission denied.(publickey). linderox Linux - Networking 2 02-27-2008 10:36 AM
Permission denied (publickey,password,keyboard-interactive) cccc Linux - General 3 05-31-2007 06:32 PM
Permission denied (publickey,password,keyboard-interactive). rockymaxsource Linux - Networking 3 04-27-2007 09:32 PM


All times are GMT -5. The time now is 07:27 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration