Skip to content

Commit

Permalink
fix: Useless last executed command after ssh login
Browse files Browse the repository at this point in the history
Remote control uses a temporary script to do the remote login. However, it will leave an useless last executed command which cannot be ran again.
This commit erases the login script execution history after login.

Fix: linuxdeepin/developer-center#4037
Log: Useless last executed command after ssh login

Signed-off-by: Yutao Meng <[email protected]>
  • Loading branch information
ArchieMeng committed Apr 12, 2023
1 parent fdfd113 commit b219525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remotemanage/remotemanagementplugn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void RemoteManagementPlugin::doCennectServer(ServerConfig *curServer)
if (nullptr != curServer) {

QString shellFile = createShellFile(curServer);
QString strTxt = "expect -f " + shellFile + "\n";
QString strTxt = "expect -f " + shellFile + " ; history -d $(history 1) \n";
//--added by qinyaning(nyq) to solve the probelm which Connecting to the remote server
/*does not connect to the remote server directly in the new TAB. time: 2020.4.13 18:15
* */
Expand Down

0 comments on commit b219525

Please sign in to comment.