LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 12-06-2011, 06:54 AM   #1
wichiff
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 19

Rep: Reputation: 0
Authorization problem on Amazon S3 with Boto in Gnome Terminal as opposed to SSH


I have a problem with Boto, the Amazon S3 library.
This is in ubuntu 11.04 with python-boto 1.9b-1ubuntu5.

I try this in Python:
Code:
    >>> import boto
    >>> s3=boto.connect_s3()
    >>> b=s3.get_bucket('b-uck.et.name')
This works when I ssh into the ubuntu machine.
It fails when I am logged into gnome session and it is not run with root privileges (after sudo su).

The error message we get is S3ResponseError: 403 Forbidden with "The request signature we calculated does not match the signature you provided. Check your key and signing method."

The credentials are given by way of environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

When I am root before starting python (with sudo su), the get_bucket() call succeeds.

Do you have an idea what could be wrong with my desktop ?
 
  


Reply

Tags
authorization, gnome, ssh, terminal


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH to Amazon EC2 Arlc Linux - Security 3 07-22-2011 07:41 PM
open an ssh session in a new instance of gnome-terminal? recomboDNA Programming 1 09-14-2010 08:49 PM
trouble with VNC in gnome-rdp started through terminal via ssh (Xubuntu 7.10) sehku17 Linux - Software 2 05-01-2008 06:47 PM
Terminal and SSH problem juanvelez Linux - General 1 04-27-2006 08:08 PM
Problem with remote terminal (ssh and PuTTY) guardian653 *BSD 11 02-09-2005 06:16 AM


All times are GMT -5. The time now is 08:26 PM.

Main Menu
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