ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm]  sshfs
@ 2010-08-25  9:23 Occisor
  2010-08-25 10:34 ` Michael Shigorin
  0 siblings, 1 reply; 11+ messages in thread
From: Occisor @ 2010-08-25  9:23 UTC (permalink / raw)
  To: ALT Linux Community general discussions

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

Монтирую с помощью sshfs:
$ sshfs user@1.1.1.1:/home/user /mnt/serversshfs
команда выглядит примерно так, после требуется ввести пароль. Как 
сделать чтоб пароль вносился автоматически, и без указания в команде 
монтирования?

[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 278 bytes --]

begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:Jabber: occisor@jabr.ru=0D=0A=
	ICQ: 292441788
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-25  9:23 [Comm] sshfs Occisor
@ 2010-08-25 10:34 ` Michael Shigorin
  2010-08-26  8:45   ` Occisor
  0 siblings, 1 reply; 11+ messages in thread
From: Michael Shigorin @ 2010-08-25 10:34 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Wed, Aug 25, 2010 at 07:23:27PM +1000, Occisor wrote:
> Как сделать чтоб пароль вносился автоматически, и без указания
> в команде монтирования?

man ssh-keygen (и ssh-copy-id)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-25 10:34 ` Michael Shigorin
@ 2010-08-26  8:45   ` Occisor
  2010-08-26  9:05     ` Alexander Yereschenko
  0 siblings, 1 reply; 11+ messages in thread
From: Occisor @ 2010-08-26  8:45 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

On 25.08.2010 20:34, Michael Shigorin wrote:
> On Wed, Aug 25, 2010 at 07:23:27PM +1000, Occisor wrote:
>> Как сделать чтоб пароль вносился автоматически, и без указания
>> в команде монтирования?
>
> man ssh-keygen (и ssh-copy-id)
>
Спасибо, получилось. Куда можно поместить скрипт с указанием куда что 
монтировать (текущему пользователю), чтоб автоматически он срабатывал? 
Сунул его сюда: ~/.kde4/Autostart Но он не отрабатывает.

[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 267 bytes --]

begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:Jabber: occisor@jabr.ru=0D=0A=
	ICQ: 292441788
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-26  8:45   ` Occisor
@ 2010-08-26  9:05     ` Alexander Yereschenko
  2010-08-27  8:00       ` Occisor
  0 siblings, 1 reply; 11+ messages in thread
From: Alexander Yereschenko @ 2010-08-26  9:05 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Доброе!
В сообщении от 26 августа 2010 Occisor написал(a):
> Куда можно поместить скрипт с указанием куда что
> монтировать (текущему пользователю), чтоб автоматически он срабатывал?
> Сунул его сюда: ~/.kde4/Autostart Но он не отрабатывает.

~/.xsession.d/  

--
Alexander

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-26  9:05     ` Alexander Yereschenko
@ 2010-08-27  8:00       ` Occisor
  2010-08-27  8:07         ` Шенцев Алексей Владимирович
  0 siblings, 1 reply; 11+ messages in thread
From: Occisor @ 2010-08-27  8:00 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

On 26.08.2010 19:05, Alexander Yereschenko wrote:
> Доброе!
> В сообщении от 26 августа 2010 Occisor написал(a):
>> Куда можно поместить скрипт с указанием куда что
>> монтировать (текущему пользователю), чтоб автоматически он срабатывал?
>> Сунул его сюда: ~/.kde4/Autostart Но он не отрабатывает.
>
> ~/.xsession.d/

Что-то все равно не срабатывает, файл такой:

$ ls -l ~/.xsession.d
итого 4
-rwxr-xr-x 1 user user 69 Авг 25 23:35 sshfs.sh

$ cat ~/.xsession.d/sshfs.sh
#!/bin/sh
sshfs user@1.1.1.1:/home/user /mnt/serversshfs


если его запустить в ручную то все срабатывает.

[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 267 bytes --]

begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:Jabber: occisor@jabr.ru=0D=0A=
	ICQ: 292441788
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-27  8:00       ` Occisor
@ 2010-08-27  8:07         ` Шенцев Алексей Владимирович
  2010-08-27  8:13           ` Occisor
  2010-08-28  5:42           ` Kharitonov A. Dmitry
  0 siblings, 2 replies; 11+ messages in thread
From: Шенцев Алексей Владимирович @ 2010-08-27  8:07 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Friday 27 August 2010 12:00:24 Occisor wrote:
> On 26.08.2010 19:05, Alexander Yereschenko wrote:
> > Доброе!
> >
> > В сообщении от 26 августа 2010 Occisor написал(a):
> >> Куда можно поместить скрипт с указанием куда что
> >> монтировать (текущему пользователю), чтоб автоматически он срабатывал?
> >> Сунул его сюда: ~/.kde4/Autostart Но он не отрабатывает.
> >
> > ~/.xsession.d/
>
> Что-то все равно не срабатывает, файл такой:
>
> $ ls -l ~/.xsession.d
> итого 4
> -rwxr-xr-x 1 user user 69 Авг 25 23:35 sshfs.sh
>
> $ cat ~/.xsession.d/sshfs.sh
> #!/bin/sh
> sshfs user@1.1.1.1:/home/user /mnt/serversshfs
>
>
> если его запустить в ручную то все срабатывает.

~/.bash_profile
и перелогинится попробуй ...

-- 
С уважением, Шенцев Алексей Владимирович.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-27  8:07         ` Шенцев Алексей Владимирович
@ 2010-08-27  8:13           ` Occisor
  2010-08-27  8:22             ` Шенцев Алексей Владимирович
  2010-08-27  8:23             ` Шенцев Алексей Владимирович
  2010-08-28  5:42           ` Kharitonov A. Dmitry
  1 sibling, 2 replies; 11+ messages in thread
From: Occisor @ 2010-08-27  8:13 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

On 27.08.2010 18:07, Шенцев Алексей Владимирович wrote:
> On Friday 27 August 2010 12:00:24 Occisor wrote:
>> On 26.08.2010 19:05, Alexander Yereschenko wrote:
>>> Доброе!
>>>
>>> В сообщении от 26 августа 2010 Occisor написал(a):
>>>> Куда можно поместить скрипт с указанием куда что
>>>> монтировать (текущему пользователю), чтоб автоматически он срабатывал?
>>>> Сунул его сюда: ~/.kde4/Autostart Но он не отрабатывает.
>>>
>>> ~/.xsession.d/
>>
>> Что-то все равно не срабатывает, файл такой:
>>
>> $ ls -l ~/.xsession.d
>> итого 4
>> -rwxr-xr-x 1 user user 69 Авг 25 23:35 sshfs.sh
>>
>> $ cat ~/.xsession.d/sshfs.sh
>> #!/bin/sh
>> sshfs user@1.1.1.1:/home/user /mnt/serversshfs
>>
>>
>> если его запустить в ручную то все срабатывает.
>
> ~/.bash_profile

$ cat ~/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
         . ~/.bashrc
fi

# User specific environment and startup programs

BASH_ENV=$HOME/.bashrc
export BASH_ENV

# freedesktop standard directories

XDG_DATA_HOME=$HOME/.local/share
export XDG_DATA_HOME

XDG_CONFIG_HOME=$HOME/.config
export XDG_CONFIG_HOME

XDG_CACHE_HOME=$HOME/.cache
export XDG_CACHE_HOME


> и перелогинится попробуй ...

Перезагружался.


[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 267 bytes --]

begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:Jabber: occisor@jabr.ru=0D=0A=
	ICQ: 292441788
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-27  8:13           ` Occisor
@ 2010-08-27  8:22             ` Шенцев Алексей Владимирович
  2010-08-27  8:23             ` Шенцев Алексей Владимирович
  1 sibling, 0 replies; 11+ messages in thread
From: Шенцев Алексей Владимирович @ 2010-08-27  8:22 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Friday 27 August 2010 12:13:40 Occisor wrote:
> On 27.08.2010 18:07, Шенцев Алексей Владимирович wrote:
> > On Friday 27 August 2010 12:00:24 Occisor wrote:
> >> On 26.08.2010 19:05, Alexander Yereschenko wrote:
> >>> Доброе!
> >>>
> >>> В сообщении от 26 августа 2010 Occisor написал(a):
> >>>> Куда можно поместить скрипт с указанием куда что
> >>>> монтировать (текущему пользователю), чтоб автоматически он срабатывал?
> >>>> Сунул его сюда: ~/.kde4/Autostart Но он не отрабатывает.
> >>>
> >>> ~/.xsession.d/
> >>
> >> Что-то все равно не срабатывает, файл такой:
> >>
> >> $ ls -l ~/.xsession.d
> >> итого 4
> >> -rwxr-xr-x 1 user user 69 Авг 25 23:35 sshfs.sh
> >>
> >> $ cat ~/.xsession.d/sshfs.sh
> >> #!/bin/sh
> >> sshfs user@1.1.1.1:/home/user /mnt/serversshfs
> >>
> >>
> >> если его запустить в ручную то все срабатывает.
> >
> > ~/.bash_profile
>
> $ cat ~/.bash_profile
> # .bash_profile
>
> # Get the aliases and functions
> if [ -f ~/.bashrc ]; then
>          . ~/.bashrc
> fi
>
> # User specific environment and startup programs
>
> BASH_ENV=$HOME/.bashrc
> export BASH_ENV
>
> # freedesktop standard directories
>
> XDG_DATA_HOME=$HOME/.local/share
> export XDG_DATA_HOME
>
> XDG_CONFIG_HOME=$HOME/.config
> export XDG_CONFIG_HOME
>
> XDG_CACHE_HOME=$HOME/.cache
> export XDG_CACHE_HOME
>
> > и перелогинится попробуй ...
>
> Перезагружался.



-- 
С уважением, Шенцев Алексей Владимирович.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-27  8:13           ` Occisor
  2010-08-27  8:22             ` Шенцев Алексей Владимирович
@ 2010-08-27  8:23             ` Шенцев Алексей Владимирович
  2010-08-27  8:30               ` Occisor
  1 sibling, 1 reply; 11+ messages in thread
From: Шенцев Алексей Владимирович @ 2010-08-27  8:23 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Friday 27 August 2010 12:13:40 Occisor wrote:
> On 27.08.2010 18:07, Шенцев Алексей Владимирович wrote:
> > ~/.bash_profile
>
> $ cat ~/.bash_profile

<кусь>
ну так вставьте свой вызов в него.

> > и перелогинится попробуй ...
> Перезагружался.
достаточно перелогинится.
-- 
С уважением, Шенцев Алексей Владимирович.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-27  8:23             ` Шенцев Алексей Владимирович
@ 2010-08-27  8:30               ` Occisor
  0 siblings, 0 replies; 11+ messages in thread
From: Occisor @ 2010-08-27  8:30 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 365 bytes --]

On 27.08.2010 18:23, Шенцев Алексей Владимирович wrote:
> On Friday 27 August 2010 12:13:40 Occisor wrote:
>> On 27.08.2010 18:07, Шенцев Алексей Владимирович wrote:
>>> ~/.bash_profile
>>
>> $ cat ~/.bash_profile
>
> <кусь>
> ну так вставьте свой вызов в него.
>
>>> и перелогинится попробуй ...
>> Перезагружался.
> достаточно перелогинится.

Спасибо, сработало.

[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 267 bytes --]

begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:Jabber: occisor@jabr.ru=0D=0A=
	ICQ: 292441788
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Comm] sshfs
  2010-08-27  8:07         ` Шенцев Алексей Владимирович
  2010-08-27  8:13           ` Occisor
@ 2010-08-28  5:42           ` Kharitonov A. Dmitry
  1 sibling, 0 replies; 11+ messages in thread
From: Kharitonov A. Dmitry @ 2010-08-28  5:42 UTC (permalink / raw)
  To: ALT Linux Community general discussions


> ~/.bash_profile
> и перелогинится попробуй ...
>
>    
А fstab не поддерживает?



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-08-28  5:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-25  9:23 [Comm] sshfs Occisor
2010-08-25 10:34 ` Michael Shigorin
2010-08-26  8:45   ` Occisor
2010-08-26  9:05     ` Alexander Yereschenko
2010-08-27  8:00       ` Occisor
2010-08-27  8:07         ` Шенцев Алексей Владимирович
2010-08-27  8:13           ` Occisor
2010-08-27  8:22             ` Шенцев Алексей Владимирович
2010-08-27  8:23             ` Шенцев Алексей Владимирович
2010-08-27  8:30               ` Occisor
2010-08-28  5:42           ` Kharitonov A. Dmitry

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git