Terminal Commands Fail with "cd no such file or directory"

Advertisement

johnywhy
Joined:
Posts:
5
Location:
Bay Area

Terminal Commands Fail with "cd no such file or directory"

i receive the cd "no such file" error in various scenarios, even tho i didn't enter cd.

error occurs when i launch WinSCP, when i do right-click > Duplicate on a file, and when i attempt to execute terminal commands.
commands work without error in Putty.
An unknown bash is being executed.

it seems winscp, or the remote host, is executing cd.
it appears the cd is trying to change from root to active directory, which is why the cd fails. The target dir is already the active dir.

version: 5.13 build 8172
windows 8.1
SFTP
host: 1and1 shared

Error changing directory to '/clickandbuilds/MediaWiki/MyWikis/extensions'
Command 'cd "/clickandbuilds/MediaWiki/MyWikis/extensions"'
failed with return code 1 and error message
-bash: line 17: cd: /clickandbuilds/MediaWiki/MyWikis/extensions: No such file or directory.



log attached

Reply with quote

Advertisement

johnywhy
Joined:
Posts:
5
Location:
Bay Area

i found Advanced settings for the connection, but i don't see where to set remote commands to a separate shell session. That's not clear from the link you shared.

How do i set remote commands to a separate shell session?

thx

Reply with quote

johnywhy
Joined:
Posts:
5
Location:
Bay Area

if i open a Terminal, then i see the "Connecting" messages. Therefor, it seems terminal is running under a separate session. No? The article you linked seems to confirm that all terminal sessions run on a separate connection, no?

To support execution of remote command and a direct duplication of remote file, WinSCP can open a separate shell session to perform the commands. The shell session is opened automatically.

The article links to a different article, which might be more relevant.

https://winscp.net/eng/docs/ui_login_scp

The linked article is about other shell options (not about running in a separate session). One of these may be the cause of this error:
    * Shell option: what shell WinSCP will use.
    * Return code variable: what environment variable contains exit code of the last command.
    * Listing command: what shell command WinSCP uses to list directory contents.
    * Ignore LS warnings: ignore any error messages printed by the ls command.
    * Clear aliases: clear all aliases on start-up.
    * Clear national variables: clear environment variables known to influence directory listing.
    * Use scp2 with scp1 compat: force the scp command to use really the SCP protocol.

However, i am moving to a new host, due to several issues with 1and1 (including this issue). I'm not seeing this issue on my new host (namecheap). So i no longer need to resolve this issue. I'll leave it to others to experiment.

Reply with quote

Advertisement

You can post new topics in this forum