Releases: Cumulocity-IoT/cumulocity-remote-access-local-proxy
v2.5.0
What's Changed
- feat: improve passthrough config guess by @reubenmiller in #165
Full Changelog: v2.4.1...v2.5.0
v2.4.1
What's Changed
- Disconnect TCP peer when Web Socket is closed by @switschel in #116
Full Changelog: v2.4.0...v2.4.1
v2.4.0
What's Changed
-
Fallback to first PASSTHROUGH config when no matches found. #102
If the the
PASSTHROUGH
configuration endpoint name does not match the given name, then it will use the first passthrough endpoint (if any). In this case it will also warn the user that the name is potentially wrong. In most cases this "guess" should be good enough, as it only affects devices with more than 1 passthrough endpoint.Example
If you specify the incorrect--config <name>
, then everything should still work fine. It will fail if there are no passthrough endpoints.# This will fallback to the first available passthrough config on the device c8ylp connect ssh TST-import_commutative_width --ssh-user docker --config ThisNameIsWrong
Full Changelog: v2.3.0...v2.4.0
v2.3.0
What's Changed
-
Support stdin-/out forwarding by @gillima in #81
Support stdin/out forwarding to the Cumulocity server it can be used directly as a ssh ProxyCommand without the need of starting a local TCP server and using socat. This method works for both, windows and unix.
Example
ssh -o 'ProxyCommand=c8ylp server <device> --stdio --env-file .env' <device_username>@<device>
By adding the proxy command to the
.ssh/config
file, the usage of the Cumulocity server can be simplified even more.The file allows to define user and environment file so the connection can be done by simply typing
ssh <device>
.For this use the following example configuration (
%n
will be replaced byssh
with the given device name):Host <device> User <device_username> PreferredAuthentications publickey IdentityFile <identify_file> ServerAliveInterval 120 StrictHostKeyChecking no UserKnownHostsFile /dev/null ProxyCommand c8ylp server %n --stdio --env-file .env # Or you can create a generic ssh config for all devices with a similar prefix: # Usage; # => ssh linux-device01 # => ssh linux-device02 Host linux-* User admin PreferredAuthentications publickey IdentityFile ~/.ssh/myprivatekey ServerAliveInterval 120 StrictHostKeyChecking no UserKnownHostsFile /dev/null ProxyCommand c8ylp server %n --stdio --env-file .env
-
chore: improve integration test compatibility to make it possible to run on MacOS. #85
New Contributors
Full Changelog: v2.2.0...v2.3.0
v2.2.0
What's Changed
-
feat: Unix only - Support starting a proxy using a Unix socket server (instead of a local tcp server) @mortbauer in #60
Example
# Start c8ylp proxy server which uses a unix socket instead of a tcp server c8ylp server <device> --env-file .env --socket-path /tmp/device.socket # Use ssh with proxy command (requires socat) ssh -o 'ProxyCommand=socat - UNIX-CLIENT:/tmp/device.socket' <device_username>@localhost
-
chore: update project dependencies (including dev) by @reubenmiller in #63
New Contributors
- @mortbauer made their first contribution in #60
Full Changelog: v2.1.4...v2.2.0
v2.1.4
What's Changed
Fixes
c8y connect ssh
supports reading the--ssh-user
values from theC8YLP_SSH_USER
environment variable
Full Changelog: v2.1.3...v2.1.4
v2.1.3
What's Changed
Fixes
- Remove duplicated
-t
shorthand option for the--token
option. Fixes #45 - Add new option to disable storage of token in an dotenv file using
--no-store-token
(opposite of the existing--store-token
option). Previously there was not a way to disable it using a flag
Full Changelog: v2.1.2...v2.1.3
v2.1.2
Fixes
- fix: Only display deprecation warning for
reconnects
option when it is used.
Full Changelog: v2.1.1...v2.1.2
v2.1.1
Fixes
- fix: Added deprecation mark on
reconnects
option which was removed during an erroneous merge
Full Changelog: v2.1.0...v2.1.1
v2.1.0
Fixes
- fix: Shutdown websocket when the tcp client terminates. #38
- fix: Mark
--reconnects
option as deprecated, it will be removed in the next major release. The reconnect logic websocket has been removed as attempting a reconnect after the client has been connected once causes problems with different servers. #40 - build: update dev dependencies
Full Changelog: v2.0.4...v2.1.0