Simon Tatham
d094883d3c
Fix segfault when you press a key before the SSH protocol decides whether
...
it's doing SSH1 or SSH2. Only visible on slow servers :-)
[originally from svn r803]
2000-11-21 10:53:10 +00:00
Simon Tatham
462063cdc5
Implement Zlib compression, in both SSH1 and SSH2.
...
[originally from svn r792]
2000-11-01 21:34:21 +00:00
Simon Tatham
696400a672
Stop the "Sent username %s" message coming up twice in pscp -v
...
[originally from svn r772]
2000-10-27 09:24:32 +00:00
Simon Tatham
2c9c817895
Misc bugfixes
...
[originally from svn r771]
2000-10-27 09:17:19 +00:00
Simon Tatham
eab981fbd1
Format SSH2_MSG_DISCONNECT correctly (with reason code, reason
...
string, and language tag).
[originally from svn r770]
2000-10-26 13:10:47 +00:00
Simon Tatham
809bd81d5c
Fix another bignum formatting problem. This one hit Diffie-Hellmann
...
[originally from svn r761]
2000-10-24 21:43:39 +00:00
Simon Tatham
5ff9cc2f1f
SSH2 connections weren't closing cleanly after socket revamp. Fixed.
...
[originally from svn r754]
2000-10-24 09:55:45 +00:00
Simon Tatham
039103ff5d
Window resizing wasn't working in SSH2
...
[originally from svn r753]
2000-10-24 09:49:03 +00:00
Simon Tatham
bbbda4110b
Created a shiny new abstraction for the socket handling. Has many
...
advantages:
- protocol modules can call sk_write() without having to worry
about writes blocking, because blocking writes are handled in the
abstraction layer and retried later.
- `Lost connection while sending' is a thing of the past.
- <winsock.h> is no longer needed in most modules, because
"putty.h" doesn't have to declare `SOCKET' variables any more,
only the abstracted `Socket' type.
- select()-equivalent between multiple sockets will now be handled
sensibly, which opens the way for things like SSH port
forwarding.
[originally from svn r744]
2000-10-23 10:32:37 +00:00
Simon Tatham
e32603347c
Introduce a sane interface function, from_backend(), for backends to
...
use when they have data from the network. Replaces the utterly daft
inbuf / inbuf_head / term_out() interface, which only made sense
when feeding to terminal.c. (terminal.c now implements
from_backend() as a small function that gateways to the old
interface.)
As a side effect, from_backend() also has an `is_stderr' parameter,
so scp can once again separate the server's pronouncements on stderr
from the actual protocol progress on stdout.
[originally from svn r729]
2000-10-20 13:51:46 +00:00
Simon Tatham
8d0bee8629
PuTTYgen initial version. Still to do are basic user-friendliness
...
features (prompt for passphrase twice, prompt before overwriting a
file, check the key file was actually saved OK), testing of the
generated keys to make sure I got the file format right, and support
for a variable key size. I think what's already here is basically
sound though.
[originally from svn r715]
2000-10-19 15:43:08 +00:00
Simon Tatham
f543b08ca5
Add some more commented-out diagnostics for ssh1
...
[originally from svn r713]
2000-10-18 15:33:05 +00:00
Simon Tatham
95697270b5
Implement MD5 MAC for the benefit of old SSH2 servers
...
[originally from svn r709]
2000-10-12 14:24:58 +00:00
Simon Tatham
fd3e15f328
Miscellaneous fixes for better interoperation with commercial SSH 2
...
[originally from svn r708]
2000-10-12 13:34:46 +00:00
Simon Tatham
3e83d75154
Add a config option to emulate the HMAC bug in commercial SSH v2.3.x
...
and earlier (namely, it uses only 16 bytes of key rather than 20).
[originally from svn r706]
2000-10-12 12:39:44 +00:00
Simon Tatham
fd5588d087
Robert de Bath's big patch:
...
- cope with strange WinSock wrappers not supporting SIOCATMARK
- define yet more terminal compatibility modes
- support UK-ASCII (just like US-ASCII but # is a sterling sign)
- support connection keepalives at a configurable interval
[originally from svn r692]
2000-10-09 12:53:32 +00:00
Simon Tatham
8c169b0c6d
Tighten up use of "static" throughout. Module-internal things should NOT
...
be exported willy-nilly. It encourages people to use them.
[originally from svn r677]
2000-10-06 11:42:30 +00:00
Simon Tatham
9a9bd54197
Store default port number in each back end
...
[originally from svn r669]
2000-10-04 14:35:15 +00:00
Simon Tatham
a4a9ccc70b
Further restructuring
...
[originally from svn r657]
2000-09-29 15:56:33 +00:00
Simon Tatham
bfec52c1c9
Fix ssh2 after the rev 1.54 [r649] reorg broke it
...
[originally from svn r656]
[r649 == 960c03468d
]
2000-09-29 15:53:59 +00:00
Simon Tatham
0a1fe7a9af
Make sure a locally entered login name still comes up in the pw prompt
...
[originally from svn r653]
2000-09-29 12:04:42 +00:00
Simon Tatham
0e9b76540b
Add -pw and -P options, and usage/version message, to plink
...
[originally from svn r650]
2000-09-29 08:56:30 +00:00
Simon Tatham
960c03468d
Minor restructuring to ssh.c in preparation for portability drive
...
[originally from svn r649]
2000-09-29 08:43:47 +00:00
Simon Tatham
087f33eb71
While we're doing a hostkey reorg, store port numbers as well
...
[originally from svn r643]
2000-09-28 08:37:10 +00:00
Simon Tatham
aad0a52dfb
Rationalised host key storage. Also started code reorg: persistent-state
...
routines have been moved out into a replaceable module winstore.c.
[originally from svn r639]
2000-09-27 15:21:04 +00:00
Simon Tatham
0fed43e9f4
Remove the special hooks in ssh.c for pscp. pscp now uses the standard
...
interface to the outside of the ssh module. This means pscp now works
without change in SSH2.
[originally from svn r638]
2000-09-27 09:36:39 +00:00
Simon Tatham
355cdbd5e8
Implement OpenSSH-compatible RSA key fingerprints and use them throughout
...
[originally from svn r637]
2000-09-26 14:26:21 +00:00
Simon Tatham
ab839c6127
Fix a segfault in agent forwarding code
...
[originally from svn r633]
2000-09-26 11:16:47 +00:00
Simon Tatham
3e4619b479
The "Authenticated using key from agent" message is a verbose-only one
...
[originally from svn r631]
2000-09-26 10:06:05 +00:00
Simon Tatham
673f2e48a7
Rationalise ordering of authentication operations. Still some work to do,
...
but at least pscp no longer hangs when prompting for a passphrase
[originally from svn r621]
2000-09-25 10:14:53 +00:00
Simon Tatham
e70425dda6
Enable better build-time flexibility over which WinSock to include
...
[originally from svn r615]
2000-09-22 13:16:49 +00:00
Simon Tatham
c0ac8ab9b4
Bug fix: line discipline selection is not enabled until after ssh
...
authentication phase to stop user/password prompts behaving oddly
[originally from svn r614]
2000-09-22 13:10:19 +00:00
Simon Tatham
e5ef37f3f5
Prevent network errors from summarily closing the window when CoE is off
...
[originally from svn r613]
2000-09-22 11:04:57 +00:00
Simon Tatham
180b62b6b0
Miscellaneous ssh2 fixes. plink is now relatively sane
...
[originally from svn r608]
2000-09-21 14:34:32 +00:00
Simon Tatham
ea8d61f2d9
Fix Blowfish-with-SSH2 combination, and enable user cipher
...
selection for SSH2
[originally from svn r606]
2000-09-20 15:15:02 +00:00
Simon Tatham
c410c7c44c
SSH2 is now more plausible - window sizes listened to, basic non-crashing
...
[originally from svn r604]
2000-09-20 14:29:52 +00:00
Simon Tatham
774110ee94
A couple of SSH2 fixes
...
[originally from svn r602]
2000-09-20 10:59:24 +00:00
Simon Tatham
f8be19a08b
Configuration option for agent forwarding
...
[originally from svn r597]
2000-09-15 11:26:18 +00:00
Simon Tatham
a97b390d96
A couple of small cleanups
...
[originally from svn r595]
2000-09-15 10:57:15 +00:00
Simon Tatham
c96384efe0
Pageant now accepts an initial key list on the command line
...
[originally from svn r592]
2000-09-15 10:48:42 +00:00
Simon Tatham
c366174cc2
Added Pageant, a first-attempt PuTTY authentication agent
...
[originally from svn r589]
2000-09-14 15:02:50 +00:00
Simon Tatham
eed592d887
Add CryptoCard authentication
...
[originally from svn r587]
2000-09-12 08:44:30 +00:00
Simon Tatham
334b79e16c
Add switch to choose SSH v1-versus-v2 protocol preference where both
...
are available
[originally from svn r584]
2000-09-11 09:37:43 +00:00
Simon Tatham
1864344036
Oops - remove SHA debugging from ssh2
...
[originally from svn r578]
2000-09-09 08:21:34 +00:00
Simon Tatham
4109ac3dfc
Stop plink losing data at start of session
...
[originally from svn r577]
2000-09-08 16:42:11 +00:00
Simon Tatham
be711d9cd4
plink can now execute a specific command instead of just a shell session
...
[originally from svn r576]
2000-09-08 15:24:19 +00:00
Simon Tatham
8394a48620
Added a fourth application: plink, a command line connection utility
...
[originally from svn r575]
2000-09-08 14:45:20 +00:00
Simon Tatham
263d9e0f09
Public key authentication now works in pscp too - oops
...
[originally from svn r574]
2000-09-08 08:33:52 +00:00
Simon Tatham
d9af8f4b90
RSA key authentication in ssh1 works; SSH2 is nearly there
...
[originally from svn r572]
2000-09-07 16:33:49 +00:00
Simon Tatham
0f1e449189
SSH2 transport layer now enables encryption and MAC successfully for 3DES
...
[originally from svn r571]
2000-09-06 09:55:32 +00:00