LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-22-2011, 09:52 AM   #1
jayakumar01
Member
 
Registered: Nov 2011
Posts: 106

Rep: Reputation: Disabled
sshfs filesystem mount error


Hi

sshfs root@xxx.xx.xx.xx:/backup /storage
password:

im planning to backup the content of remote system logs by using sshfs by using shell scripts.But i searched out google i never got sshfs username and password on the same line.
 
Old 12-22-2011, 10:11 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,775

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by jayakumar01 View Post
Hi
sshfs root@xxx.xx.xx.xx:/backup /storage
password:

im planning to backup the content of remote system logs by using sshfs by using shell scripts.But i searched out google i never got sshfs username and password on the same line.
Check your other thread, when you posted with another of your ID's....been covered and answered, but you never replied.
http://www.linuxquestions.org/questi...e-line-915295/
 
Old 12-22-2011, 10:53 AM   #3
jayakumar01
Member
 
Registered: Nov 2011
Posts: 106

Original Poster
Rep: Reputation: Disabled
hi
can i know wat ur trying to say
 
Old 12-22-2011, 10:57 AM   #4
jayakumar01
Member
 
Registered: Nov 2011
Posts: 106

Original Poster
Rep: Reputation: Disabled
Hi All,

I read out the complte manual page of sshfs .it deliver -o for reading out the password .When i try to exe it delivers error

> mount root@xx.xx.xx:/backup /storage - o password_stdin password



[root@localhost ~]# sshfs root@xx.xx.xx:/backup /storage >> "password"
root@xx.xx.xx.xx's password:

Last edited by jayakumar01; 12-22-2011 at 11:15 AM.
 
Old 12-22-2011, 11:15 AM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,775

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by jayakumar01 View Post
hi
can i know wat ur trying to say
Spell out your words...that text-speak garbage isn't nice for anyone. And I'm saying what's very obvious...that you have four different user ID's on this site, and tend to ask the same questions under all of them.
Quote:
Originally Posted by jayakumar01
Hi All,
I read out the complte manual page of sshfs .it deliver -o for reading out the password .When i try to exe it delivers error
Did you read the link to your other thread, where you were given info on how to do this? Suggestions about passwordless-SSH keyswaps, and direction to a site where the question was answered IN DETAIL??

Again, the -o reads the password from STDIN, so you have to write your script to put the password in, if you ignore the links given to you with already-functioning scripts and suggestions. And without actually telling us WHAT error(s) you get, how do you think anyone will be able to help you???
 
Old 12-22-2011, 11:26 AM   #6
jayakumar01
Member
 
Registered: Nov 2011
Posts: 106

Original Poster
Rep: Reputation: Disabled
http://www.unix.com/shell-programmin...fs-script.html

sshfs username@hostname:~/mnt /media/remote -p 6110

i folowed the above url , But itse deliver read: Connection reset by peer
 
Old 12-22-2011, 06:29 PM   #7
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,775

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by jayakumar01 View Post
http://www.unix.com/shell-programmin...fs-script.html

sshfs username@hostname:~/mnt /media/remote -p 6110

i folowed the above url , But itse deliver read: Connection reset by peer
Congratulations...you followed a document that doesn't apply to you, unless you're using Truecrypt...which SSHFS IS NOT.

Again, follow the link posted in your other thread, and READ the documentation you were pointed to there. I even posted a link back to your other thread, and will post the link here too:
http://ubuntuforums.org/showthread.php?t=430312&page=6

AGAIN, if you do an SSH keyswap, you will be able to script this without a password. If you bother to read the link provided to you at least twice now, you would see how to even put this into fstab, to have it auto-mount.
 
Old 12-23-2011, 01:34 AM   #8
jayakumar01
Member
 
Registered: Nov 2011
Posts: 106

Original Poster
Rep: Reputation: Disabled
Mount a sshfs filesystem using password

Hi,


Finally got the answer

http://darklaunch.com/2009/06/05/how...mounting-mosso

echo password | sshfs root@10.200.2.102:/tmp /saravana -o password_stdin

I Think it could help someone
 
Old 12-23-2011, 11:33 AM   #9
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,775

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by jayakumar01 View Post
Hi,
Finally got the answer

http://darklaunch.com/2009/06/05/how...mounting-mosso

echo password | sshfs root@10.200.2.102:/tmp /saravana -o password_stdin

I Think it could help someone
Yes...the same thing that was in the thread posted to you initially. Page six of that thread dealt with passwordless logins/keyswaps. Page seven had that exact command, with an example of it being used in a shell-script.

You ignore the parts about SSH keyswaps, and the other replies you got in this thread and the one under your other ID, then post the solution you were given to start with? Mark the thread SOLVED if it's fixed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sshfs mount testing Murdock1979 Linux - Software 5 05-14-2009 08:18 AM
Permission denied error when trying to mount image contained in sshfs mount openSauce Linux - General 2 03-08-2009 08:50 AM
mdadm : mount = specify filesystem or bad superblock error ron7000 Linux - Software 3 05-14-2008 02:48 PM
mount error: cifs filesystem not supported by the system pazo Linux - General 2 12-18-2007 10:15 AM
shared filesystem crap: shfs, sshfs, lufs, fuse whansard Linux - Networking 1 06-26-2005 07:58 PM


All times are GMT -5. The time now is 04:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration