# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#needed for python 2.5
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#needed for python 2.5
from paramiko import Transport, SFTPClient, RSAKey, DSSKey
from paramiko.config import SSHConfig
from paramiko import Transport, SFTPClient, RSAKey, DSSKey
from paramiko.config import SSHConfig
key_file = os.path.expanduser(self.config['identityfile'])
#not really nice but i don't see a cleaner way atm...
try:
self.auth_key = RSAKey (key_file)
key_file = os.path.expanduser(self.config['identityfile'])
#not really nice but i don't see a cleaner way atm...
try:
self.auth_key = RSAKey (key_file)
def get(self, type, name):
return self.client.open(self.__build_fn(name), mode = 'rb')
def get(self, type, name):
return self.client.open(self.__build_fn(name), mode = 'rb')