Bug 3185 - .ssh/rc: No such file or directory
Summary: .ssh/rc: No such file or directory
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 8.3p1
Hardware: amd64 Linux
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_8_4
  Show dependency treegraph
 
Reported: 2020-06-21 23:46 AEST by Semyon Vasilkov
Modified: 2020-10-02 14:55 AEST (History)
1 user (show)

See Also:


Attachments
Make sshrc use absolute path (1.51 KB, patch)
2020-06-22 11:13 AEST, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Semyon Vasilkov 2020-06-21 23:46:52 AEST
I'm reading sshd man:
"If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment files but before starting the user's shell or command."
My .ssh/rc file work nice, but if my "~/.bashrc" file have command like "cd ~/Desktop" I got error during ssh logon: "/bin/sh: .ssh/rc: No such file or directory"

I'm using Fedora 32 amd64
Comment 1 Darren Tucker 2020-06-22 11:13:50 AEST
Created attachment 3414 [details]
Make sshrc use absolute path

Please try this patch.
Comment 2 Semyon Vasilkov 2020-06-23 00:31:51 AEST
Thank you! I try rebuild fedora openssh package. Unfortunately, it can take many time, because I never corecompiled source packages
Comment 3 Darren Tucker 2020-06-26 14:45:38 AEST
This has been applied and will be in the next major release.  Thanks for the report.
Comment 4 Darren Tucker 2020-10-02 14:55:04 AEST
Mass close of all bugs fixed in 8.4 release.