SSHFS not connecting at login using .profile - connection reset by peer

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I'm trying to create an sshfs connection when I login, so I have added a call to a script within the ~/.profile which runs the sshfs command.



Here's the script that is called:



!/bin/bash
sshfs jason@192.168.0.6:/media/media/videos/ /home/jason/Desktop/sftpx8dtl/ -p 50505 -o IdentityFile=/home/jason/.ssh/id_rsa


When I login, I get a box that tells me that the connection has been reset by the peer.



If I then immediately open a terminal and run the script above manually, it works fine.



Is there some other program that needs to be running prior to the commands in ~/.profile?



I don't think there's anything wrong with the command itself since it works fine when I run it manually.



Thanks!










share|improve this question





















  • I have a ~/.ssh/config entry set up that includes the user, host, port, and identity file which I use for regular ssh, and I tried using that as well, but it didn't work.
    – wedsa5
    Feb 1 at 1:02






  • 1




    What version of Ubuntu and what desktop session are you using? is your home directory encrypted?
    – steeldriver
    Feb 1 at 2:36










  • Distro: Ubuntu 17.10 Kernel: Linux 4.13.0-32 Desktop is Lubuntu I don't believe it's encrypted.
    – wedsa5
    Feb 1 at 4:57















up vote
0
down vote

favorite












I'm trying to create an sshfs connection when I login, so I have added a call to a script within the ~/.profile which runs the sshfs command.



Here's the script that is called:



!/bin/bash
sshfs jason@192.168.0.6:/media/media/videos/ /home/jason/Desktop/sftpx8dtl/ -p 50505 -o IdentityFile=/home/jason/.ssh/id_rsa


When I login, I get a box that tells me that the connection has been reset by the peer.



If I then immediately open a terminal and run the script above manually, it works fine.



Is there some other program that needs to be running prior to the commands in ~/.profile?



I don't think there's anything wrong with the command itself since it works fine when I run it manually.



Thanks!










share|improve this question





















  • I have a ~/.ssh/config entry set up that includes the user, host, port, and identity file which I use for regular ssh, and I tried using that as well, but it didn't work.
    – wedsa5
    Feb 1 at 1:02






  • 1




    What version of Ubuntu and what desktop session are you using? is your home directory encrypted?
    – steeldriver
    Feb 1 at 2:36










  • Distro: Ubuntu 17.10 Kernel: Linux 4.13.0-32 Desktop is Lubuntu I don't believe it's encrypted.
    – wedsa5
    Feb 1 at 4:57













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to create an sshfs connection when I login, so I have added a call to a script within the ~/.profile which runs the sshfs command.



Here's the script that is called:



!/bin/bash
sshfs jason@192.168.0.6:/media/media/videos/ /home/jason/Desktop/sftpx8dtl/ -p 50505 -o IdentityFile=/home/jason/.ssh/id_rsa


When I login, I get a box that tells me that the connection has been reset by the peer.



If I then immediately open a terminal and run the script above manually, it works fine.



Is there some other program that needs to be running prior to the commands in ~/.profile?



I don't think there's anything wrong with the command itself since it works fine when I run it manually.



Thanks!










share|improve this question













I'm trying to create an sshfs connection when I login, so I have added a call to a script within the ~/.profile which runs the sshfs command.



Here's the script that is called:



!/bin/bash
sshfs jason@192.168.0.6:/media/media/videos/ /home/jason/Desktop/sftpx8dtl/ -p 50505 -o IdentityFile=/home/jason/.ssh/id_rsa


When I login, I get a box that tells me that the connection has been reset by the peer.



If I then immediately open a terminal and run the script above manually, it works fine.



Is there some other program that needs to be running prior to the commands in ~/.profile?



I don't think there's anything wrong with the command itself since it works fine when I run it manually.



Thanks!







login automount .profile sshfs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 1 at 1:00









wedsa5

1




1











  • I have a ~/.ssh/config entry set up that includes the user, host, port, and identity file which I use for regular ssh, and I tried using that as well, but it didn't work.
    – wedsa5
    Feb 1 at 1:02






  • 1




    What version of Ubuntu and what desktop session are you using? is your home directory encrypted?
    – steeldriver
    Feb 1 at 2:36










  • Distro: Ubuntu 17.10 Kernel: Linux 4.13.0-32 Desktop is Lubuntu I don't believe it's encrypted.
    – wedsa5
    Feb 1 at 4:57

















  • I have a ~/.ssh/config entry set up that includes the user, host, port, and identity file which I use for regular ssh, and I tried using that as well, but it didn't work.
    – wedsa5
    Feb 1 at 1:02






  • 1




    What version of Ubuntu and what desktop session are you using? is your home directory encrypted?
    – steeldriver
    Feb 1 at 2:36










  • Distro: Ubuntu 17.10 Kernel: Linux 4.13.0-32 Desktop is Lubuntu I don't believe it's encrypted.
    – wedsa5
    Feb 1 at 4:57
















I have a ~/.ssh/config entry set up that includes the user, host, port, and identity file which I use for regular ssh, and I tried using that as well, but it didn't work.
– wedsa5
Feb 1 at 1:02




I have a ~/.ssh/config entry set up that includes the user, host, port, and identity file which I use for regular ssh, and I tried using that as well, but it didn't work.
– wedsa5
Feb 1 at 1:02




1




1




What version of Ubuntu and what desktop session are you using? is your home directory encrypted?
– steeldriver
Feb 1 at 2:36




What version of Ubuntu and what desktop session are you using? is your home directory encrypted?
– steeldriver
Feb 1 at 2:36












Distro: Ubuntu 17.10 Kernel: Linux 4.13.0-32 Desktop is Lubuntu I don't believe it's encrypted.
– wedsa5
Feb 1 at 4:57





Distro: Ubuntu 17.10 Kernel: Linux 4.13.0-32 Desktop is Lubuntu I don't believe it's encrypted.
– wedsa5
Feb 1 at 4:57
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1001911%2fsshfs-not-connecting-at-login-using-profile-connection-reset-by-peer%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1001911%2fsshfs-not-connecting-at-login-using-profile-connection-reset-by-peer%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

Running the scala interactive shell from the command line

Do not install recommended packages of dependencies