[GH-ISSUE #1342] Remove spaces in add new shh server #770

Closed
opened 2026-02-27 00:00:55 +03:00 by kerem · 0 comments
Owner

Originally created by @pereirapk on GitHub (Sep 3, 2019).
Original GitHub issue: https://github.com/electerm/electerm/issues/1342

Electerm version: 0.27.53v

Operating system(linux, macos, or windows7/8/10?): Linux

Expected Behavior

add a trim before and after hostname username fields

Current Behavior

Do not connect when there is a hostname space after the variable entered

Possible Solution

remove space before and after variable before connecting

Steps to Reproduce

1.Add new ssh
2.insert hostname with trailing space

Context (Environment)

I could not connect in ssh until removing the space

Detailed Description

adding a function to remove spaces before connecting to ssh

Suggestions?

****Good Job man!

Originally created by @pereirapk on GitHub (Sep 3, 2019). Original GitHub issue: https://github.com/electerm/electerm/issues/1342 <!--- Provide some basic info --> ## Electerm version: 0.27.53v ## Operating system(linux, macos, or windows7/8/10?): Linux ## Expected Behavior <!--- Tell me what should happen --> add a trim before and after hostname username fields ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> Do not connect when there is a hostname space after the variable entered ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> remove space before and after variable before connecting ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1.Add new ssh 2.insert hostname with trailing space ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> I could not connect in ssh until removing the space ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> adding a function to remove spaces before connecting to ssh ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too --> ****Good Job man!
kerem 2026-02-27 00:00:55 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#770
No description provided.