[ 
https://issues.apache.org/jira/browse/SSHD-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17391705#comment-17391705
 ] 

Lyor Goldstein commented on SSHD-1183:
--------------------------------------

{quote}copy c:\users\atlantis\.ssh\id_rsa.pub c:\users\atlantis\id_rsa.pub & cd 
c:\users\atlantis
{quote}
You are trying to run +2+ commands in one line - this might be possible for a 
Linux shell (though even there it might not work) but AFAIK not in a Windows 
shell

> ssh shell fails to execute the right commands
> ---------------------------------------------
>
>                 Key: SSHD-1183
>                 URL: https://issues.apache.org/jira/browse/SSHD-1183
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.5.1
>         Environment: windows enterprise edition 2019
> openssh server for windows
>            Reporter: saudade
>            Priority: Major
>
> h6. I a using the apache sshd ssh shell client app to execute windows 
> commands in openssh for windows server.
> [https://github.com/apache/mina-sshd/blob/master/sshd-cli/src/test/java/org/apache/sshd/cli/client/ChannelExecMain.java]
> h6. I have observed a few things:
>  # 
> h6. when I execute a command
> h6.  copy c:\users\atlantis\.ssh\id_rsa.pub c:\users\atlantis\id_rsa.pub & cd 
> c:\users\atlantis
> h6.  the copy command executes perfectly but the cd command doesn't work.
>  when the below command is executed
>           cd c:\users\atlantis & copy c:\users\atlantis\.ssh\id_rsa.pub  
> c:\users\atlantis\id_rsa.pub
> both the cd and copy command are executed perfectly
> h6. 
> -----------------------------------------------------------------------------------------------------------------------------------------------
> both these commands work perfectly when using the openssh client.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to