vscode-sftp: "exec: $SHELL: not found" error

i use win10 x64, vscode 1.31.1, sftp 1.9.4

  1. sftp: open ssh in terminal run
  2. have error
ssh -t user@192.168.20.12 -p 22 "cd "/home/user"; exec \$SHELL -l"
user@192.168.20.12's password:
bash: line 0: exec: $SHELL: not found
Connection to 192.168.20.12 closed.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 21 (10 by maintainers)

Most upvoted comments

same error. T.T

D:\> ssh -t user@192.168.20.230 -p 22 "cd \"/home/user\"; exec \$SHELL -l"
user@192.168.20.230's password:
bash: line 0: exec: $SHELL: not found
Connection to 192.168.20.230 closed.

D:\>ssh -t user@192.168.20.230 -p 22
user@192.168.20.230's password:
Last login: Wed Feb 27 15:02:37 2019 from 192.168.20.248
[user@localhost ~]$ cd "/home/user"; exec $SHELL -l
[user@localhost ~]$