Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
Default scp problem (ps: Process environment requires procfs(5))


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

vivin@serenity ~/Projects/code
$ scp -r myusername@www.mybox.net:~/code/agnostic .
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.


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

proc                    /proc           procfs  rw              0       0
linproc                 /compat/linux/proc      linprocfs       rw      0       0
and then
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:

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

vivin@serenity ~/Projects/code

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:

PS1='\[\033]0;\u on \H [\w]\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
alias ls='gnuls --color'

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

# 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 || {
And this was causing the SCP to fail...

Last edited by vi5in; 9th March 2010 at 03:31 PM.
Reply With Quote

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 09:23 AM.

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