在不同帐户之间使用WinSCP切换用户

编程入门 行业动态 更新时间:2024-10-08 04:35:02
本文介绍了在不同帐户之间使用WinSCP切换用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以使用WinSCP在用户帐户之间切换?

Is there way to switch between user accounts using WinSCP?

使用PuTTY时,可以使用su命令在不同帐户之间切换用户.

When I am using PuTTY, I can use su command to switch users between different accounts.

例如:

kitis@localhost$ kitis@localhost$ su abc abc@localhost$

以同样的方式,当我使用WinSCP时,是否有一种方法可以在我登录服务器后切换用户?

In the same way, when I am using WinSCP, is there a way for me to switch users while I have logged in to a server?

推荐答案

不,这是不可能的.当您想使用SCP切换用户(在您的情况下为WinSCP)时,需要重新登录.您不能在SCP会话中运行任何命令,而只能管理文件. fnd SCP协议本身不支持更改当前用户ID的机制.如果您想在会话中更改用户,则必须使用SSH.

No, it is impossible. When you want to switch user using SCP (WinSCP in your case) your need to relogin. You can't run any commands in SCP-session, just manage files; fnd SCP-protocol itself supports no mechanisms to change current users' id. You must use SSH if you want to have a possibility to change a user in a session.

更多推荐

在不同帐户之间使用WinSCP切换用户

本文发布于:2023-07-22 14:58:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1188593.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:帐户   用户   WinSCP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!