DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th March 2010
vi5in's Avatar
vi5in vi5in is offline
Real Name: Vivin Paliath
Port Guard
 
Join Date: May 2008
Location: Arizona
Posts: 17
Thanked 0 Times in 0 Posts
Default scp problem (ps: Process environment requires procfs(5))

Hello,

I've been scp'ing into my FreeBSD box without any problem. However, today I was met with this:

Code:
vivin@serenity ~/Projects/code
$ scp -r myusername@www.mybox.net:~/code/agnostic .
Password:
ps: Process environment requires procfs(5)
Initializing new SSH agent...

vivin@serenity ~/Projects/code
$
I can ssh into the box without any problem. Running "ps -ef" on the same box gives the same problem. I've never run into this issue before. I tried rebooting, but that didn't help either.

EDIT

Ok, I made the "ps" problem go away by putting this in my fstab:

Code:
proc                    /proc           procfs  rw              0       0
linproc                 /compat/linux/proc      linprocfs       rw      0       0
and then
Code:
vivin@enterprise ~
$ sudo mount /compat/linux/proc

vivin@enterprise ~
$ sudo mount /proc
Now I don't get that error when I scp, but I get:

Code:
vivin@serenity ~/Projects/code
$ scp -r myusername@www.mybox.net:~/code/agnostic .
Password:
Initializing new SSH agent...

vivin@serenity ~/Projects/code
$
EDIT

I wonder if this is related to my public key. I created one because I am using github, and it is in my .ssh/

I figured out the problem. I had this in my .bashrc:

Code:
PS1='\[\033]0;\u on \H [\w]\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
alias ls='gnuls --color'
SSH_ENV="$HOME/.ssh/environment"

function start_agent {
  echo "Initializing new SSH agent..."
  /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
  echo succeeded
  chmod 600 "${SSH_ENV}"
  . "${SSH_ENV}" > /dev/null
  /usr/bin/ssh-add;
}

# Source SSH settings, if applicable
if [ -f "${SSH_ENV}" ]; then
  . "${SSH_ENV}" > /dev/null
  #ps ${SSH_AGENT_PID} doesn't work under cywgin
  ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
    start_agent;
  }
else
  start_agent;
fi
And this was causing the SCP to fail...

Last edited by vi5in; 9th March 2010 at 03:31 PM.
Reply With Quote
  #2   (View Single Post)  
Old 9th March 2010
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 764
Thanked 36 Times in 32 Posts
Default

procfs is Linux's process file system. Can you describe your environment?
Reply With Quote
  #3   (View Single Post)  
Old 9th March 2010
vi5in's Avatar
vi5in vi5in is offline
Real Name: Vivin Paliath
Port Guard
 
Join Date: May 2008
Location: Arizona
Posts: 17
Thanked 0 Times in 0 Posts
Default

It's a BSD system and I have linux binary-compatibility. But apparently that wasn't the issue.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced programming in the UNIX environment 2nd edition? graudeejs Book reviews 11 1st December 2008 10:15 AM
fusefs-kmod: requires the userland sources to be installed? zelut FreeBSD Ports and Packages 2 7th October 2008 10:39 PM
I. Treating 'iso-itis' in an OpenBSD environment with USBmediazine® J65nko Guides 3 31st July 2008 01:51 AM
How to duplicate an installed Operating Environment dk_netsvil General software and network 0 22nd July 2008 03:01 PM
Can't use bash on chroot'd openssh environment jploh FreeBSD General 2 18th June 2008 02:12 AM


All times are GMT. The time now is 08:56 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick