<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Scp_non_funziona%2C_d%C3%A0_errori_appena_connesso</id>
	<title>Scp non funziona, dà errori appena connesso - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Scp_non_funziona%2C_d%C3%A0_errori_appena_connesso"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Scp_non_funziona,_d%C3%A0_errori_appena_connesso&amp;action=history"/>
	<updated>2026-06-20T00:31:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Scp_non_funziona,_d%C3%A0_errori_appena_connesso&amp;diff=3699&amp;oldid=prev</id>
		<title>Gabriele.vivinetto at 11:52, 22 October 2005</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Scp_non_funziona,_d%C3%A0_errori_appena_connesso&amp;diff=3699&amp;oldid=prev"/>
		<updated>2005-10-22T11:52:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category: Ssh]]&lt;br /&gt;
[[Category: Bash]]&lt;br /&gt;
Il problema è lo stesso di [[Errore &amp;quot;Received message too long&amp;quot; con sftp o winscp]]&lt;br /&gt;
&lt;br /&gt;
E&amp;#039; espresso nella FAQ di OpenSSH.&lt;br /&gt;
&lt;br /&gt;
Per risolverlo, è utile ricordare che:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;.bashrc&amp;#039;&amp;#039;&amp;#039;: viene eseguito per le shell &amp;#039;&amp;#039;non interattive&amp;#039;&amp;#039; (come scp)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;.bash_profile&amp;#039;&amp;#039;&amp;#039;: viene eseguito per le shell di login (come sessioni ssh)&lt;br /&gt;
&lt;br /&gt;
Quindi se si ha ad esempio un &amp;#039;&amp;#039;echo&amp;#039;&amp;#039; o un comando che produce output (qualsiasi output, basta che scriva su stdout o stderr) è bene metterlo in .bash_profile, NON in .bashrc.&lt;br /&gt;
&lt;br /&gt;
Quindi: spostare tutto ciò che si vuole sia eseguito al login in .bash_profile (che esegue comunque .bashrc) e lasciare le parti essenziali in .bashrc.&lt;br /&gt;
&lt;br /&gt;
Vedi [http://archive.erdelynet.com/ssh-l/2005-08/3380.html ssh works, scpt and sftp not]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>