John Hood
04b03b41f6
Revert "Do not close stdin on ssh session."
...
This reverts commit 45c521d632 .
2016-11-11 23:31:11 -05:00
John Hood
45c521d632
Do not close stdin on ssh session.
...
This helps with #819 .
2016-11-06 06:15:41 -05:00
Anders Kaseorg
8a8f2b29ca
Fix most shell hygiene issues found by shellcheck
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2016-11-04 03:15:03 -04:00
John Hood
70d48fbcc0
Add --no-ssh-pty option.
...
This eliminates issues with typeahead being echoed by the remote pty
and corrupting remote output from mosh-server to the mosh script, but
cannot be made default because older mosh-servers require a pty.
2016-09-19 13:23:15 -04:00
John Hood
8945efeb82
Allow server to bind an OS-selected UDP port with -p 0.
...
It looks like Mosh used to be able to do this but the capability was
lost when port ranges were added in 141ec23 .
2016-09-19 13:23:15 -04:00
Keith Winstein
a09381d161
http -> https links for mosh.org
2016-08-12 00:11:47 -07:00
Keith Winstein
ca2750dd03
Update website location (mosh.mit.edu -> mosh.org)
2016-08-12 00:10:53 -07:00
John Hood
af8ddd090e
Add options to prefer v4 or v6 on connect; make prefer-inet the default.
...
Resolves #764 , mostly.
2016-07-10 23:30:24 -04:00
John Hood
1b2ddc2e81
Make OS X mDNS/Bonjour .local IPv6 addresses work.
...
OS X advertises IPv6 link-local addresses for .local hostnames.
getaddrinfo() correctly reports interface identifiers for these, but we
were discarding them by using the socket peer host address instead.
2016-06-09 11:51:35 -04:00
Robin H. Johnson
274b5a4d14
bind-server: accept any value to option.
...
Rather than trying to validate, accept any option to the bind-server
option, and allow mosh-server to validate it, as noted by
https://github.com/mobile-shell/mosh/pull/670#issuecomment-135147605
Fixes: 669
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org >
2016-06-09 00:31:49 -04:00
John Hood
30eb5bb515
mosh.pl: restore compatibility with older Socket module.
...
Also require Perl 5.14, which is the new compatibility
floor.
Fixes #758 .
2016-05-24 15:13:12 -04:00
Anders Kaseorg
4c7200c016
--experimental-remote-ip=local: Substitute the IP more carefully
...
For example, do not interpret regex metacharacters within the
hostname, and avoid accidentally matching the username part of
username@hostname when they happen to match.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2016-05-09 03:01:32 -04:00
Jaeho Shin
d636845c8d
Display original command line argv via no-op flag.
...
Improves 679b819216 to make it simpler to
ignore mosh-client from OS X Terminal.app's "Ask before closing" process
list. (See: http://superuser.com/a/254647 )
Moreover, the command displayed from ps is a completely functional one,
which was not the case in the previous approach, that mangles `argv[0]`.
Fixes #742 .
2016-05-08 23:05:36 -04:00
John Hood
09bdc7caae
Enforce SHELL=/bin/sh for more reliable SSH proxy command.
2016-05-08 22:59:30 -04:00
John Hood
eb98976410
Add --experimental-remote-ip option.
2016-05-08 22:47:54 -04:00
John Hood
dbbed24d83
Use server's $SSH_CONNECTION if ProxyCommand isn't run.
...
This is an alternate way to resolve #417 without affecting
backward compatibility.
2016-03-30 23:52:19 -04:00
John Hood
9dbf3b366d
mosh.pl: use single quotes where appropriate
2016-03-30 23:52:19 -04:00
John Hood
389fc23205
Better, more flexible handling for IPv4/IPv6.
...
Add --family=auto/all.
Attempt connects to all available addresses.
Working error handling.
Fixes #629 .
2016-03-30 23:52:19 -04:00
John Hood
b742e958b6
mosh-server: Support timeouts on lost connectivity to network client.
...
Closes #690 .
2015-11-24 02:36:08 -05:00
Anders Kaseorg
f0f2aa7cce
mosh.pl: Run ssh directly instead of via sh
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2015-11-01 01:07:21 -04:00
John Hood
448f9f1bab
mosh: implement --local option for use without ssh
2015-10-03 03:43:18 -04:00
John Hood
937ab14f86
scripts/mosh: Make the generated file executable.
2015-05-31 23:09:04 -04:00
Anders Kaseorg
b58e750daf
scripts/mosh: Fix hang when remote closes the connection
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2015-05-28 23:41:57 -04:00
John Hood
9eeb2fbffa
mosh.pl: Add a better error message for IPV6 & Socket::IP.
2015-05-28 22:49:46 -04:00
Anders Kaseorg
e7903f0de2
scripts/mosh: Allow IO::Socket::INET6 as an alternative to IO::Socket::IP
...
Some systems have IO::Socket::INET6 preinstalled, so we might as well
accept either.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2015-05-28 22:49:46 -04:00
John Hood
14bdd8f00f
mosh.pl: Make syntax valid before Makefile edits.
2015-05-28 22:49:46 -04:00
john hood
f3073bbe5d
Add git commit version info
2015-05-25 03:46:48 -04:00
Anders Kaseorg
a4c5829812
scripts/mosh: Add -6 option to connect with IPv6
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-08-17 09:21:38 -04:00
Anders Kaseorg
aeee659c28
scripts/mosh: Let IO::Socket resolve the hostname
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-08-17 09:02:45 -04:00
Keith Winstein
4792992afa
Rename --bind-ip to --bind-server, add =ANY option, add error checking.
...
Closes #415 .
2013-04-28 15:33:36 -04:00
Philipp Haselwarter
fc70612de6
mosh perl wrapper: New option --bind-ip={ssh|IP}
...
Allow overriding the switch passed to mosh-server from -s to -i IP.
Signed-off-by: Philipp Haselwarter <philipp@haselwarter.org >
2013-04-28 15:14:47 -04:00
Anton Lundin
fb39fe2c7e
Simplify pipe management
...
We don't need to write perl like C.
2013-04-09 22:31:12 +02:00
Keith Winstein
1b9915fcaf
Bump version to 1.2.4a
2013-03-27 18:36:03 -04:00
Keith Winstein
688bf21b07
Bump version to 1.2.4
2013-03-27 00:28:47 -04:00
Keith Winstein
c6a8427d61
mosh Perl wrapper: Downgrade Perl regex to avoid named capture
...
(Failed on Perl 5.8 with OS X 10.5)
2013-03-10 22:53:05 -04:00
Keith Winstein
4668dc595f
Bump version to 1.2.3.95rc1 (1.2.4 release candidate)
2013-03-10 17:52:56 -04:00
Anders Kaseorg
ea3ad786fa
scripts/mosh: Add --no-init option to disable alternate screen mode
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #384 . Closes #2 .
2013-03-10 15:46:49 -04:00
Keith Winstein
8290e387af
Remove dependency on IO::Pty
2013-01-18 11:50:58 -05:00
Anton Lundin
74e1a30944
Replace IO::Pty with pipe
...
Now when we don't need some fancy pty for sending on window-size and
reading proxy-output from, just use a regular pipe to drop dependency on
IO::Pty
[closes #378 ]
2013-01-18 11:31:28 -05:00
Anton Lundin
e0dfe363a0
Have ssh close stdin and forceallocate pty
...
Somehow we still need to have a real pty on stdin to ssh so
window-size-thingie works.
2013-01-18 11:31:19 -05:00
Anton Lundin
077b664f13
Close some leftover fd's
2013-01-18 11:31:19 -05:00
Anton Lundin
2ef025c09a
Dup to pty to prevent ssh from reading our stdin
...
Dup the pty to STDIN to prevent hour the exec'ed ssh from consuming our
early input.
Due to the fact that mosh-server copies the pty settings from the pty it
as when starting, we can't set that one to a raw.
This are probably a combination of effects cased by fcc629ac and
18dc967c .
This probably fixes #366
[Closes #369 ]
2013-01-16 02:16:13 -05:00
Keith Winstein
05ec364b7d
Verify $port_request defined before scanning it for error purposes
2012-11-09 11:56:28 -05:00
Keith Winstein
07b2942945
Friendlier error message when server does not support UDP port range.
2012-10-29 15:35:56 -04:00
Luke Mewburn
141ec239da
Support port range as -p/--port PORT[:HIGHPORT].
...
Extend mosh and mosh-server to support parsing a high port from
the desired_port argument. The first (low) port must not be
greater than the second (high) port.
If only one value is provided, behaviour is as before; bind
to one port. Also tweak the formatting in mosh-server(1) synopsis
to be consistent.
This resolves mosh issue # 296.
Signed-off-by: Luke Mewburn <luke@mewburn.net >
2012-10-29 14:59:28 -04:00
Keith Winstein
73a2675e8c
Bump version to 1.2.3
2012-10-19 15:33:48 -04:00
Keith Winstein
9c34f5b279
Bump version to 1.2.2.95rc1 (1.2.3 release candidate)
2012-10-05 19:50:52 -04:00
Keith Winstein
56093d2961
Not all OpenSSH installations support GSSAPITrustDns=no, so this broke some.
...
This reverts commit dce0c7f880 .
2012-08-12 19:57:19 +02:00
Keith Winstein
dce0c7f880
Pass -o GSSAPITrustDns=no to improve (but not totally fix) Kerberos situation
2012-08-11 19:55:38 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00