Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SSH Kitten does not preserve custom port numbers #7648

Closed
00-kat opened this issue Jul 19, 2024 · 1 comment
Closed

The SSH Kitten does not preserve custom port numbers #7648

00-kat opened this issue Jul 19, 2024 · 1 comment
Labels

Comments

@00-kat
Copy link

00-kat commented Jul 19, 2024

Describe the bug
The SSH Kitten does not store custom port numbers. When new_tab_with_cwd or new_os_window_with_cwd are used, an error message briefly appears detailing that ssh was unable to connect on port 22 rather than the custom port provided.

To Reproduce
Steps to reproduce the behavior:

  1. Choose your favourite keybinding for new_os_window_with_cwd.
  2. Use the SSH Kitten, but with a port number that's not 22. E.g.: kitten ssh some@where -p 1234
  3. Spam the previous keybinding and try to read the text on the window that briefly appears.
  4. See the following:
ssh: connect to host domainnamegoeshere port 22: Connection refused

Minimal kitty.conf

map kitty_mod+n new_os_window_with_cwd

Environment details

kitty 0.35.2 created by Kovid Goyal
Linux ArchLinux 6.9.9-hardened1-1-hardened #1 SMP PREEMPT_DYNAMIC Thu, 11 Jul 2024 20:14:26 +0000 x86_64
Arch Linux 6.9.9-hardened1-1-hardened (/dev/tty)

Running under: Wayland (Hyprland v0.41.2,) missing: single_pixel_buffer
OpenGL: '4.6 (Core Profile) Mesa 24.1.4-arch1.2' Detected version: 4.6
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/fish
Loaded config files:
  /home/kat/.config/kitty/kitty.conf

Config options different from defaults:
bold_font                       JetBrainsMono NF Bold
bold_italic_font                JetbrainsMono NF Bold Italic
cursor_shape                    2
enabled_layouts                 ['grid', 'fat', 'tall', 'stack', 'splits', 'horizontal', 'vertical']
focus_follows_mouse             True
font_family                     JetBrainsMono NF Regular
italic_font                     JetBrainsMono NF Italic
notify_on_cmd_finish            NotifyOnCmdFinish(when='invisible', duration=15.0, action='notify', cmdline=())
paste_actions                   frozenset({'quote-urls-at-prompt', 'confirm-if-large', 'confirm'})
remember_window_size            False
scrollback_fill_enlarged_window True
scrollback_lines                15000
scrollback_pager                ['less', '--chop-long-lines', '--raw-control-chars', '+INPUT_LINE_NUMBER']
scrollback_pager_history_size   262144000
tab_bar_align                   center
visual_bell_duration            0.5
wayland_enable_ime              False
Added mouse actions:
	alt+left press ungrabbed →  mouse_selection rectangle
	shift+alt+left press grabbed →  mouse_selection rectangle
	shift+alt+left press ungrabbed →  mouse_selection rectangle
Removed mouse actions:
	ctrl+alt+left press ungrabbed →  mouse_selection rectangle
	ctrl+shift+left release ungrabbed →  mouse_handle_click link
	left click ungrabbed →  mouse_handle_click selection link prompt
Added shortcuts:
	ctrl+l →  clear_terminal to_cursor_scroll active
	shift+super+- →  change_font_size current -2.0
	shift+super+= →  change_font_size current +2.0
	super++ →  change_font_size current +2.0
	super+- →  change_font_size current -2.0
	super+0 →  change_font_size current 0
	super+= →  change_font_size current +2.0
	super+n →  new_os_window_with_cwd
	super+t →  new_tab_with_cwd
Changed shortcuts:
	kitty_mod++ →  change_font_size current +2.0
	kitty_mod+- →  change_font_size current -2.0
	kitty_mod+= →  change_font_size current +2.0
	kitty_mod+backspace →  change_font_size current 0
	kitty_mod+kp_add →  change_font_size current  +2.0
	kitty_mod+kp_subtract →  change_font_size current -2.0
	kitty_mod+n →  new_os_window_with_cwd
	kitty_mod+t →  new_tab_with_cwd
Colors:
	active_border_color             #b7bdf8   
	active_tab_background           #c6a0f6   
	active_tab_foreground           #181926   
	background                      #24273a   
	bell_border_color               #eed49f   
	color0                          #494d64   
	color1                          #ed8796   
	color10                         #a6da95   
	color11                         #eed49f   
	color12                         #8aadf4   
	color13                         #f5bde6   
	color14                         #8bd5ca   
	color15                         #a5adcb   
	color2                          #a6da95   
	color3                          #eed49f   
	color4                          #8aadf4   
	color5                          #f5bde6   
	color6                          #8bd5ca   
	color7                          #b8c0e0   
	color8                          #5b6078   
	color9                          #ed8796   
	cursor                          #f4dbd6   
	cursor_text_color               #24273a   
	foreground                      #cad3f5   
	inactive_border_color           #6e738d   
	inactive_tab_background         #1e2030   
	inactive_tab_foreground         #cad3f5   
	mark1_background                #b7bdf8   
	mark1_foreground                #24273a   
	mark2_background                #c6a0f6   
	mark2_foreground                #24273a   
	mark3_background                #7dc4e4   
	mark3_foreground                #24273a   
	selection_background            #f4dbd6   
	selection_foreground            #24273a   
	tab_bar_background              #181926   
	url_color                       #f4dbd6   

Important environment variables seen by the kitty process:
	PATH                                /usr/lib/ccache/bin:/home/kat/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
	LANG                                en_AU.UTF-8
	VISUAL                              nvim
	EDITOR                              nvim
	SHELL                               /usr/bin/fish
	DISPLAY                             :0
	WAYLAND_DISPLAY                     wayland-1
	USER                                kat
	XCURSOR_SIZE                        28
	XDG_SEAT                            seat0
	XDG_SESSION_TYPE                    wayland
	XDG_SESSION_CLASS                   user
	XDG_SESSION_ID                      1
	XDG_RUNTIME_DIR                     /run/user/1000
	XDG_CURRENT_DESKTOP                 Hyprland
	XDG_VTNR                            2
	XDG_BACKEND                         wayland
@00-kat 00-kat added the bug label Jul 19, 2024
@kovidgoyal
Copy link
Owner

You specify the port before the destination not after.

See ssh -h

kitten ssh -p whatever host

works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants