Giter Site home page Giter Site logo

Comments (7)

VShawn avatar VShawn commented on July 23, 2024

humm... it's difficult to achieve because SSH is controlled by Kitty. The only thing 1Remote does is open a kitty process, 1Remote cannot determine whether the SSH inside this process requires a second password input.

It is possible to achieve this by integrating a modified version of Kitty into 1Remote. However, I personally do not have enough time to undertake this task.

from 1remote.

LadderOperator avatar LadderOperator commented on July 23, 2024

humm... it's difficult to achieve because SSH is controlled by Kitty. The only thing 1Remote does is open a kitty process, 1Remote cannot determine whether the SSH inside this process requires a second password input.

It is possible to achieve this by integrating a modified version of Kitty into 1Remote. However, I personally do not have enough time to undertake this task.

Thanks for your work anyway. This app is very helpful.

In fact what I mean is:

  1. Add a "manually enter password" option in the profile. If you check this option, you will be required to enter the password manually every time you open a session.

  2. (based on the first step): At the same time, use the SSH password to connect to SFTP without checking. If the time interval is short enough (everything is done before TOTP refreshed), you can log in to both SSH and SFTP (almost) at once. This avoids modifying Kitty, though it looks not clever. "If SFTP was needed, after successful SSH login the password would be passed to SFTP as well." is unrealistic , just forget it...

from 1remote.

majkinetor avatar majkinetor commented on July 23, 2024

Add a "manually enter password" option in the profile. If you check this option, you will be required to enter the password manually every time you open a session.

What is the problem with leaving the password empty? You will get asked each time.

If SFTP was needed, after successful SSH login the password would be passed to SFTP as well.

Can you explain this a little bit?

from 1remote.

LadderOperator avatar LadderOperator commented on July 23, 2024

Add a "manually enter password" option in the profile. If you check this option, you will be required to enter the password manually every time you open a session.

What is the problem with leaving the password empty? You will get asked each time.

If SFTP was needed, after successful SSH login the password would be passed to SFTP as well.

Can you explain this a little bit?

The first question, yes, you are right. I do get asked every time after the "permission denied" s from the KiTTY process if I leave the password empty (actually this is the way I use 1Remote currently). However, as @VShawn mentioned above,

1Remote cannot determine whether the SSH inside this process requires a second password input
If I use SSH only, there is no problem. Whether 1Remote knows the password I input is not important.

But if I want to use SFTP at the same time (with the same TOTP password), 1Remote will open an SFTP session with a red "permission denied" (this is expected since my password is empty) on the bottom and there is no second chance for password input.

Since 1Remote cannot determine whether the SSH login was successful, I think it could be better to add a "manually enter password" option in the profile. The difference is that, with this option checked, user inputs password in a dialog box of 1Remote before SSH session is started instead of in the KiTTY process. Then 1Remote will get the password and send it to SFTP directly, without validation. We can expect two cases:

  1. If the password is wrong, SSH login fails and a second password input will be required as it does in current version. SFTP login is still raising error.
  2. If the password is correct, SSH login succeeds and SFTP login will be successful at the same time (If the password is not expired).

from 1remote.

majkinetor avatar majkinetor commented on July 23, 2024

But if I want to use SFTP at the same time

I understand your point, I am just not sure how do you "use SFTP at the same time" ? SSH and SFTP are separate connection types in 1Remote. Do you actually just use SFTP connection and expect that behavior from it ?

from 1remote.

majkinetor avatar majkinetor commented on July 23, 2024

Besides,

@VShawn

1Remote cannot determine whether the SSH inside this process requires a second password input.

But in any case, this might be feasible as kitty has integrated scripting, so I am 99% sure no kitty modification is required.

from 1remote.

VShawn avatar VShawn commented on July 23, 2024

In this case, we do not need to add the "manually enter password".

what needs to be improved is the default behavior of SFTP. When starting SFTP, if the password is empty, it should prompt the user to enter the password instead of directly logging in with an empty password.

from 1remote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.