summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--MANIFEST.in1
-rw-r--r--Makefile3
-rw-r--r--NOTES34
-rw-r--r--README6
-rw-r--r--paramiko/__init__.py22
-rw-r--r--paramiko/auth_transport.py18
-rw-r--r--paramiko/ber.py18
-rw-r--r--paramiko/channel.py18
-rw-r--r--paramiko/dsskey.py18
-rw-r--r--paramiko/kex_gex.py26
-rw-r--r--paramiko/kex_group1.py25
-rw-r--r--paramiko/message.py24
-rw-r--r--paramiko/pkey.py18
-rw-r--r--paramiko/primes.py18
-rw-r--r--paramiko/rsakey.py18
-rw-r--r--paramiko/ssh_exception.py18
-rw-r--r--paramiko/transport.py18
-rw-r--r--paramiko/util.py18
-rw-r--r--setup.py6
19 files changed, 276 insertions, 51 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index 00432015..f66b8a9a 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1 +1,2 @@
+include ChangeLog LICENSE demo.py demo_simple.py demo_server.py demo_dss_key demo_rsa_key
recursive-include docs *
diff --git a/Makefile b/Makefile
index 593dcde8..67d129a1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,7 @@
# aerodactyl (13sep03)
# bulbasaur (18sep03)
# charmander (10nov03)
-
-RELEASE=charmander
+# doduo (04jan04) - 0.9
release:
python ./setup.py sdist --formats=zip
diff --git a/NOTES b/NOTES
index 8a72a913..3db2b83b 100644
--- a/NOTES
+++ b/NOTES
@@ -15,40 +15,6 @@ SSHOutputStream --> ssh2 chan --> ssh2 transport --> SOS [no thread]
exported API...
-from Transport:
-* is_authenticated
- auth_key
- auth_password
- get_allowed_auths
- check_auth_none
- check_auth_password
- check_auth_publickey
- accept
-
-from Channel:
- set_name
- get_name
- send_eof
- settimeout
- gettimeout
- setblocking
- close
- recv
- send
- sendall
- makefile
- fileno
- shutdown
- [client:]
- get_pty
- invoke_shell
- exec_command
- invoke_subsystem
- resize_pty
- [server:]
- check_pty_request
- check_shell_request
-
from ChannelFile:
next
write
diff --git a/README b/README
index 022d8166..b7647cff 100644
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
-paramiko 0.1
-"charmander" release, 10 nov 2003
+paramiko 0.9
+"doduo" release, 04 jan 2004
-(c) 2003 Robey Pointer <robey@lag.net>
+Copyright (c) 2003-2004 Robey Pointer <robey@lag.net>
http://www.lag.net/~robey/paramiko/
diff --git a/paramiko/__init__.py b/paramiko/__init__.py
index 968b250c..9c76b7a5 100644
--- a/paramiko/__init__.py
+++ b/paramiko/__init__.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
I{Paramiko} (a combination of the esperanto words for "paranoid" and "friend")
is a module for python 2.3 or greater that implements the SSH2 protocol for
@@ -43,8 +61,8 @@ if (sys.version_info[0] < 2) or ((sys.version_info[0] == 2) and (sys.version_inf
__author__ = "Robey Pointer <robey@lag.net>"
-__date__ = "10 Nov 2003"
-__version__ = "0.1-charmander"
+__date__ = "04 Jan 2004"
+__version__ = "0.9-doduo"
#__credits__ = "Huzzah!"
__license__ = "GNU Lesser General Public License (LGPL)"
diff --git a/paramiko/auth_transport.py b/paramiko/auth_transport.py
index 5a0cd77a..7ef77a8c 100644
--- a/paramiko/auth_transport.py
+++ b/paramiko/auth_transport.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
L{Transport} is a subclass of L{BaseTransport} that handles authentication.
This separation keeps either class file from being too unwieldy.
diff --git a/paramiko/ber.py b/paramiko/ber.py
index ed7db223..f32237f4 100644
--- a/paramiko/ber.py
+++ b/paramiko/ber.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
import struct, util
diff --git a/paramiko/channel.py b/paramiko/channel.py
index 9be2fd0c..fc521525 100644
--- a/paramiko/channel.py
+++ b/paramiko/channel.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
Abstraction for an SSH2 channel.
"""
diff --git a/paramiko/dsskey.py b/paramiko/dsskey.py
index a7ddf69b..c067de06 100644
--- a/paramiko/dsskey.py
+++ b/paramiko/dsskey.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
L{DSSKey}
"""
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py
index 3fcb8f26..faa8cb30 100644
--- a/paramiko/kex_gex.py
+++ b/paramiko/kex_gex.py
@@ -1,8 +1,28 @@
#!/usr/bin/python
-# variant on group1 (see kex_group1.py) where the prime "p" and generator "g"
-# are provided by the server. a bit more work is required on our side (and a
-# LOT more on the server side).
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+"""
+Variant on L{KexGroup1} where the prime "p" and generator "g" are provided by
+the server. A bit more work is required on the client side, and a U{lot} more
+on the server side.
+"""
from message import Message
from util import inflate_long, deflate_long, bit_length
diff --git a/paramiko/kex_group1.py b/paramiko/kex_group1.py
index 13585135..94e6bea3 100644
--- a/paramiko/kex_group1.py
+++ b/paramiko/kex_group1.py
@@ -1,8 +1,27 @@
#!/usr/bin/python
-# standard SSH key exchange ("kex" if you wanna sound cool):
-# diffie-hellman of 1024 bit key halves, using a known "p" prime and
-# "g" generator.
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+"""
+Standard SSH key exchange ("kex" if you wanna sound cool). Diffie-Hellman of
+1024 bit key halves, using a known "p" prime and "g" generator.
+"""
from message import Message, inflate_long
from ssh_exception import SSHException
diff --git a/paramiko/message.py b/paramiko/message.py
index 0660fe63..dc98c6f2 100644
--- a/paramiko/message.py
+++ b/paramiko/message.py
@@ -1,4 +1,26 @@
-# implementation of an SSH2 "message"
+#!/usr/bin/python
+
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+"""
+Implementation of an SSH2 "message".
+"""
import string, types, struct
from util import inflate_long, deflate_long
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index 4d7c9a3f..d5e4a0e0 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
Common API for all public keys.
"""
diff --git a/paramiko/primes.py b/paramiko/primes.py
index 85569ceb..c7ce2451 100644
--- a/paramiko/primes.py
+++ b/paramiko/primes.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
Utility functions for dealing with primes.
"""
diff --git a/paramiko/rsakey.py b/paramiko/rsakey.py
index 7da13334..092a5610 100644
--- a/paramiko/rsakey.py
+++ b/paramiko/rsakey.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
L{RSAKey}
"""
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py
index 94168433..d0c0a49a 100644
--- a/paramiko/ssh_exception.py
+++ b/paramiko/ssh_exception.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
Exceptions defined by paramiko.
"""
diff --git a/paramiko/transport.py b/paramiko/transport.py
index 83ec5b05..92590340 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
L{BaseTransport} handles the core SSH2 protocol.
"""
diff --git a/paramiko/util.py b/paramiko/util.py
index ec935cea..e36b3640 100644
--- a/paramiko/util.py
+++ b/paramiko/util.py
@@ -1,5 +1,23 @@
#!/usr/bin/python
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
"""
Useful functions used by the rest of paramiko.
"""
diff --git a/setup.py b/setup.py
index f56151c2..9ffe9921 100644
--- a/setup.py
+++ b/setup.py
@@ -9,17 +9,17 @@ are supported.
(Previous name: secsh)
Required packages:
- pyCrypto
+ pyCrypt
'''
setup(name = "paramiko",
- version = "0.1-charmander",
+ version = "0.9-doduo",
description = "SSH2 protocol library",
author = "Robey Pointer",
author_email = "robey@lag.net",
url = "http://www.lag.net/~robey/paramiko/",
packages = [ 'paramiko' ],
- download_url = 'http://www.lag.net/~robey/paramiko/paramiko-0.1-charmander.zip',
+ download_url = 'http://www.lag.net/~robey/paramiko/paramiko-0.9-doduo.zip',
license = 'LGPL',
platforms = 'Posix; MacOS X; Windows',
classifiers = [ 'Development Status :: 3 - Alpha',