warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.39k stars 374 forks source link

Can't login into any network device #1266

Open MrSpock opened 2 years ago

MrSpock commented 2 years ago

Discord username (optional)

No response

Describe the bug

It's look like warp doesn't support connection to any network devices. I've tried HP Switch, Cisco router, Cisco switch, Dasan OLT. Results are different but always failed.

Here is example from HP:

ssh 10.x.x.x -ladmin
admin@10.x.x.x's password:
Connection to 10.x.x.x closed by remote host.
Connection to 10.x.x.x closed.

Cisco router:

ssh 10.x.x.x

Line has invalid autocommand "
hook=$(printf "{\"hook\": \"SSH\", \"value\": {\"socket_path\": \"~/.ssh/165165655024216\", \"user\": \"%s\", \"machine\": \"%s\", \"remote_shell\": \"%s\"}}" $(whoami) $(hostname) ${SHELL##*/} | command xxd -p | command tr -d "\n")
printf '^[P$d%s^\' $hoo"Connection to 10.x.x.x closed by remote host.
Connection to 10.x.x.x closed.

To Reproduce

Steps to reproduce:

  1. Connect to any network device
  2. See problem

Expected behaviour

No response

Screenshots

No response

Operating System

No response

OS Version

No response

Additional context

No response

Warp Internal (ignore): linear-label:24888f54-df93-45d5-9bdd-e38f740cac19

No response

elviskahoro commented 2 years ago

Sorry about this! Thanks for reporting. Will circle back when therea re updates!

asmc commented 1 year ago

now, It can connect my cisco router ,but no stop show config content without "--more--" tips when I run show running-config

Tcharlton-Modtek commented 1 year ago

I think I'm having a related issue (can't connect) connecting to Cisco's DevNet Sandbox (https://developer.cisco.com/site/sandbox/):

ssh developer@sandbox-iosxe-latest-1.cisco.com (developer@sandbox-iosxe-latest-1.cisco.com) Password:

Welcome to the DevNet Sandbox for CSR1000v and IOS XE

The following programmability features are already enabled:

Thanks for stopping by.

Line has invalid autocommand " export TERM_PROGRAM='WarpTerminal'

_user="$(command -v whoami >/dev/null 2>&1 && command whoami 2>/dev/null || echo $USER)" _hostname="$(command -v hostname >/dev/null 2>&1 && command hostname 2>/dev/null || uname -n)" hook=$(printf "{\"hook\": \"SSH\","Connection to sandbox-iosxe-latest-1.cisco.com closed by remote host. Connection to sandbox-iosxe-latest-1.cisco.com closed.

vorporeal commented 1 year ago

Hey all - Warp's SSH wrapper doesn't play nicely with non-POSIX remote shells. For now, you can either disable the SSH wrapper entirely (in settings) or explicitly invoke /usr/bin/ssh (instead of ssh, a function we define when we initialize the shell) to bypass the wrapper for an individual SSH session.

We're working on making this configurable on a per-host basis (so that you can set it and forget it), but no ETA yet.