Errors configuring SCP on internal network.
Hello all,
I am trying to configure SSH and SCP to copy some files from one Fedora machine to another. I have successfully got ssh working, but haven't got scp working. Check this out.. Code:
scp -v raj@192.168.1.1:/var/lib/AccountsService/icons/* ./temp/ - Raj |
Code:
debug1: Sending command: scp -v -f -- /var/lib/AccountsService/icons/* |
Here is what I did.
yum erase fortune-mod.i686 Code:
Loaded plugins: downloadonly, fastestmirror, langpacks, presto, refresh- Code:
raj@rajhome2 temp$ scp * raj@192.168.1.1:~/temp |
Minor problem/question. I get a small error when I copy now.
Code:
scp * raj@192.168.1.1:~/temp raj@rajhome2 users$ ssh raj@192.168.1.1 raj@192.168.1.1's password: Last login: Fri Oct 12 09:33:53 2012 from 192.168.1.104 bash: fortune: command not found... [/code} What is the scp/ssh logic for login? I know it runs the ~.bashrc and the /etc/.bashrc if it exists, but there must be something else it executes before that. - Raj |
The shell should be invoked as a non-interactive login shell, so I would look in the /etc/profile, ~/.bash_profile ~/.profile and so on. Anyway you can easily find out where the offending command is, by means of
Code:
grep -w fortune ~/.* /etc/* |
It was in /etc/bashrc.
Code:
raj@rajhome1 ~$ grep -w fortune ~/.* /etc/* 2>/dev/null - Raj |
All times are GMT -5. The time now is 09:26 PM. |