View previous topic :: View next topic |
Author |
Message |
boudie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/8785976542fef1f95f9d8.jpg)
Joined: 01 Feb 2004 Posts: 74 Location: nova scotia, canada
|
Posted: Sun Aug 22, 2004 2:45 am Post subject: Problem with scp |
|
|
Have ssh working on my local network, but when I try to
scp files from one machine to the other, it asks for the
password, the file name and transfer speed comes up,
as all zeroes, the file shows up in the desired directory,
but it is always empty.
If it can't write, shouldn't it say so? I've uncommented
port 22 in my /etc/ssh/ssh_config, is there something
else I could have missed? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
papal_authority Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/101649746447a8e5f5d66a5.png)
Joined: 31 Mar 2004 Posts: 1823 Location: Canada
|
Posted: Sun Aug 22, 2004 2:51 am Post subject: |
|
|
Dunno if this is your problem, but I had problems with my shell login producing output and stopping scp from working. I tweaked my .$HOME/.tcshrc to check if the login is on a tty or not like so:
Code: |
( /usr/bin/tty ) > /dev/null
if ( $status == 0 ) then
# interactive output like "echo" or "fortune" goes here
endif
# non-interactive stuff like "alias" or "setenv" can safely go here
|
HTH ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ The free market gave me gonorrhea. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
boudie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/8785976542fef1f95f9d8.jpg)
Joined: 01 Feb 2004 Posts: 74 Location: nova scotia, canada
|
Posted: Sun Aug 22, 2004 4:13 am Post subject: |
|
|
How would that translate to bash? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
penguinland n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/33495088241f2a077cc5d3.jpg)
Joined: 26 Sep 2004 Posts: 50 Location: California
|
Posted: Fri Jan 21, 2005 11:01 pm Post subject: |
|
|
This tip is exactly what you need. I had the same question, and this worked perfectly.
http://gentoo-wiki.com/TIP_Fortune
In your .bashrc file, put the following:
Quote: | if [ $TERM != "dumb" ]; then
fortune
fi |
_________________ Flying is the art of throwing yourself at the ground and missing.
- Douglas Adams |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cocker68 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Jan 2003 Posts: 227 Location: Germany
|
Posted: Mon Jan 31, 2005 7:23 pm Post subject: |
|
|
My approach to the problem is: Code: | [ "$PS1" ] && echo "sourcing ${HOME}/.bashrc" | (output to terminal only if $PS1 is set)
- Cocker :wq |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|