I set up git on my FreeBSD box so that I can commit my code to GitHub. Today I tried to scp some stuff over and I was met with this rather unhelpful message:
vivin@serenity ~/Projects/code
$ scp -r vivin@www.vivin.net:~/code/agnostic .
Password:
ps: Process environment requires procfs(5)
Initializing new SSH agent...
vivin@serenity ~/Projects/code
$
I fixed the procfs problem by adding the following to my /etc/fstab:
proc /proc procfs rw 0 0
linproc /compat/linux/proc linprocfs rw 0 0
and then running:
vivin@enterprise ~
$ sudo mount /compat/linux/proc
vivin@enterprise ~
$ sudo mount /proc
So I try to scp again and I get:
vivin@serenity ~/Projects/code
$ scp -r vivin@www.vivin.net:~/code/agnostic .
Password:
Initializing new SSH agent...
vivin@serenity ~/Projects/code
$
WTF? Then I remembered making some changes to my .bashrc to be able to commit to github:
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
I pulled all that out of my .bashrc and made a separate shell script for it. After I did that, scp started working again. I had no idea that calling scp would actually run .bashrc
It runs Applets!!! I can use the SSH Applet!! WOOHOOOOOO!!!
What’s going on? Sorry for this spree of Journal Entries. I haven’t used a computer in over 3 weeks and I was having withdrawal symptoms – and now that I have access to one (with the bare minimum of utilities) I’m a little hyper. By the way, here’s a link to the Java SSH Client that I mentioned. It’s pretty neat. I was able to fix my page from here.
How are things here… hmm… HARD. As luck would have it, I’m in a really hard company – G Company and they’re BIG on PT (Physical Training). To give you an example, last Wednesday we did a 4 mile company run in 100+F and 60% Humidity. Yeah, so I’m getting my ass kicked. But I haven’t fallen out of any runs yet. And I’m not going to either.
That’s pretty much it. Classes are boring ass hell – all about filling out forms. It’s easy but BORING. I keep nodding off. Must stop doing that! But other than that, its just all about getting used to the routine. I’m pretty sure I can do it. It’s definitely easier than Basic Training. You have a lot more freedom, but you have to be responsible too.
Well that’s pretty much it. I might be here next week. See y’all then!
Categories: AIT, Army, Java, Military Tags: ait, army, army national guard, fort lee, java, java ssh client, mindterm, ssh
Don’t worry about the journal entry. I fixed it! I’m just sooo good. Check out MindTerm
. It’s a Java SSH Client Applet for IE. It’s real good! I used that to get to the database… cool huh??
See you all next week!
Categories: AIT, Army, Java, Military Tags: ait, army, army national guard, fort lee, java, java ssh client, mindterm, ssh