NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.38k stars 14.33k forks source link

autossh does not work #260131

Open mse63 opened 1 year ago

mse63 commented 1 year ago

Describe the bug

Autossh does not seem to be able to ssh to any capacity,

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-shell -p autossh
  2. autossh [ip address]

Expected behavior

Should ssh into the server and give a shell.

Resulting behavior

Spits out usage info.

Screenshots

image

Additional context

melsh.net points to my personal DigitalOcean droplet. I am able to ssh into it using just the ssh command.

Notify maintainers

@pSub

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.55, NixOS, 23.05 (Stoat), 23.05.4076.8a4c17493e5c`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.5`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
mse63 commented 1 year ago

Update: It seems that it works if you specify the -M option. However, this is still unexpected behavior as the -M option is listed as optional in the usage and in the man pages.