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

Clash 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!
login automount .profile sshfs
add a comment |Â
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!
login automount .profile sshfs
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
add a comment |Â
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!
login automount .profile sshfs
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
login automount .profile sshfs
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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