Bug 3185

Summary: .ssh/rc: No such file or directory
Product: Portable OpenSSH Reporter: Semyon Vasilkov <ssh>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor CC: dtucker
Priority: P5    
Version: 8.3p1   
Hardware: amd64   
OS: Linux   
Bug Depends on:    
Bug Blocks: 3162    
Attachments:
Description Flags
Make sshrc use absolute path none

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.