
Hey everyone, I have the strangest problem. At home I have a manjaro laptop that has a mounted encrypted drive on /mnt/backup. At home I can cd into the directory and ls its contents. From work, when I ssh in from another manjaro laptop I cannot see the mounted drive. Is there something I can do to "fix" this? Thanks! Randy

Need to check the account you are ssh into, see how comps to the acct you use at home. (we root, another !root?, or one with diff perms) (and that you are not accidentally logging into a diff. machine ?? :) ) -tl On Wed, Apr 6, 2016 at 12:43 PM, Randy Jonasz <rjonasz@rjonasz.ca> wrote:
Hey everyone,
I have the strangest problem. At home I have a manjaro laptop that has a mounted encrypted drive on /mnt/backup. At home I can cd into the directory and ls its contents. From work, when I ssh in from another manjaro laptop I cannot see the mounted drive. Is there something I can do to "fix" this?
Thanks!
Randy --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

On Wednesday, April 6, 2016 12:53:19 PM EDT ted leslie wrote:
Need to check the account you are ssh into, see how comps to the acct you use at home. (we root, another !root?, or one with diff perms) (and that you are not accidentally logging into a diff. machine ?? :) ) -tl
Thanks for responding. I ssh in on my own account which is the same account I use at home where I can ls the contents. I double checked the port I ssh into to make sure I'm connected to the right machine and everything checks out fine

Weird, try this, ssh into machine from the machine, see what happens. Also, do a env on each type of login, see how they compare. -tl On Wed, Apr 6, 2016 at 1:00 PM, Randy Jonasz <rjonasz@rjonasz.ca> wrote:
On Wednesday, April 6, 2016 12:53:19 PM EDT ted leslie wrote:
Need to check the account you are ssh into, see how comps to the acct you use at home. (we root, another !root?, or one with diff perms) (and that you are not accidentally logging into a diff. machine ?? :) ) -tl
Thanks for responding. I ssh in on my own account which is the same account I use at home where I can ls the contents. I double checked the port I ssh into to make sure I'm connected to the right machine and everything checks out fine --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

On Wed, 2016-04-06 at 15:31 -0400, ted leslie wrote:
Weird, try this, ssh into machine from the machine, see what happens. Also, do a env on each type of login, see how they compare. -tl
Ok, I just got home and tried to ssh back into my laptop. The results were the same as when I tried from work. I can see the mounted directory's contents from my local login but not when I ssh in. The environment from ssh shell is ─[rjonasz@gilgamesh] - [~] - [2016-04-06 09:59:51] └─[0] <> env USER=rjonasz LOGNAME=rjonasz HOME=/home/rjonasz PATH=/home/rjonasz/Applications/.bin:/usr/bin:/usr/local/sbin:/usr/loca l/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_pe rl MAIL=/var/spool/mail/rjonasz SHELL=/bin/zsh SSH_CLIENT=192.168.1.200 49310 22 SSH_CONNECTION=192.168.1.200 49310 192.168.1.200 22 SSH_TTY=/dev/pts/4 TERM=xterm BROWSER=/usr/bin/xdg-open XDG_SESSION_ID=c33 XDG_RUNTIME_DIR=/run/user/1000 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus SHLVL=1 PWD=/home/rjonasz OLDPWD=/home/rjonasz LANG=en_CA.UTF-8 MAVEN_OPTS=-Xmx512m MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins ZSH=/home/rjonasz/.oh-my-zsh PAGER=less LESS=-R LC_CTYPE=en_CA.UTF-8 LSCOLORS=Gxfxcxdxbxegedabagacad _=/usr/bin/env The environment from local login is: ┌─[rjonasz@gilgamesh] - [~] - [2016-04-06 09:58:08] └─[0] <> env XDG_VTNR=1 XDG_SESSION_ID=c33 SHELL=/bin/zsh XDG_SESSION_CLASS=user USER=rjonasz XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session5 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 DESKTOP_SESSION=/usr/share/xsessions/enlightenment MAIL=/var/spool/mail/rjonasz PATH=/home/rjonasz/Applications/.bin:/usr/bin:/usr/local/sbin:/usr/loca l/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_pe rl XDG_SESSION_TYPE=x11 PWD=/home/rjonasz SHLVL=1 HOME=/home/rjonasz XDG_SEAT=seat0 XDG_SESSION_DESKTOP= LOGNAME=rjonasz DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus BROWSER=/usr/bin/xdg-open DISPLAY=:0.0 XDG_RUNTIME_DIR=/run/user/1000 XDG_CURRENT_DESKTOP= XAUTHORITY=/home/rjonasz/.Xauthority OLDPWD=/home/rjonasz LANG=en_CA.UTF-8 MAVEN_OPTS=-Xmx512m MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins GTK2_RC_FILES=/home/rjonasz/.gtkrc-2.0 GTK_MODULES=canberra-gtk-module INFINALITY_FT_FILTER_PARAMS=08 24 36 24 08 INFINALITY_FT_FRINGE_FILTER_STRENGTH=25 INFINALITY_FT_USE_VARIOUS_TWEAKS=true INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=25 INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=15 INFINALITY_FT_STEM_FITTING_STRENGTH=15 _=/usr/bin/env E_START=/usr/bin/enlightenment_start E_START_TIME=1459993467.5 E_PREFIX=/usr E_BIN_DIR=/usr/bin E_LIB_DIR=/usr/lib E_DATA_DIR=/usr/share/enlightenment E_LOCALE_DIR=/usr/share/locale PANTS=ON DESKTOP=Enlightenment QT_QPA_PLATFORMTHEME=gtk2 XDG_DATA_DIRS=/usr/share/enlightenment:/usr/share:/usr/local/share:/usr /share XDG_CONFIG_DIRS=/usr/etc/xdg:/etc/xdg XDG_MENU_PREFIX=e- E_CONF_PROFILE=standard E_ICON_THEME=nouveGnomeGray E_IPC_SOCKET=/run/user/1000/e-rjonasz@488d809c/:0.0-20827 E_SCALE=1.199 E_RESTART=1 E_TAINTED=NO TERMINOLOGY=1 TERM=xterm XTERM_256_COLORS=1 ZSH=/home/rjonasz/.oh-my-zsh PAGER=less LESS=-R LC_CTYPE=en_CA.UTF-8 LSCOLORS=Gxfxcxdxbxegedabagacad

run df & mount in both env. compare. also you may want to find out exactly how your encrypt part is mounted and what tech it uses. Ultimately you should be able to mount it manually, and then you can try those step from a non-mount state to a mounted state with each login method as well, it may shine light. Also you may want to see if any /var/log messages are spitting out anything when using the ssh fail method, dmesg, /var/log/messages /var/log/secure..... etc. Just do the ssh login, then read every log in var log that has a date update stamp to within time of the login. -tl On Wed, Apr 6, 2016 at 10:07 PM, Randy Jonasz <rjonasz@rjonasz.ca> wrote:
On Wed, 2016-04-06 at 15:31 -0400, ted leslie wrote:
Weird, try this, ssh into machine from the machine, see what happens. Also, do a env on each type of login, see how they compare. -tl
Ok, I just got home and tried to ssh back into my laptop. The results were the same as when I tried from work. I can see the mounted directory's contents from my local login but not when I ssh in.
The environment from ssh shell is
─[rjonasz@gilgamesh] - [~] - [2016-04-06 09:59:51] └─[0] <> env USER=rjonasz LOGNAME=rjonasz HOME=/home/rjonasz PATH=/home/rjonasz/Applications/.bin:/usr/bin:/usr/local/sbin:/usr/loca l/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_pe rl MAIL=/var/spool/mail/rjonasz SHELL=/bin/zsh SSH_CLIENT=192.168.1.200 49310 22 SSH_CONNECTION=192.168.1.200 49310 192.168.1.200 22 SSH_TTY=/dev/pts/4 TERM=xterm BROWSER=/usr/bin/xdg-open XDG_SESSION_ID=c33 XDG_RUNTIME_DIR=/run/user/1000 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus SHLVL=1 PWD=/home/rjonasz OLDPWD=/home/rjonasz LANG=en_CA.UTF-8 MAVEN_OPTS=-Xmx512m MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins ZSH=/home/rjonasz/.oh-my-zsh PAGER=less LESS=-R LC_CTYPE=en_CA.UTF-8 LSCOLORS=Gxfxcxdxbxegedabagacad _=/usr/bin/env
The environment from local login is:
┌─[rjonasz@gilgamesh] - [~] - [2016-04-06 09:58:08] └─[0] <> env XDG_VTNR=1 XDG_SESSION_ID=c33 SHELL=/bin/zsh XDG_SESSION_CLASS=user USER=rjonasz XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session5 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 DESKTOP_SESSION=/usr/share/xsessions/enlightenment MAIL=/var/spool/mail/rjonasz PATH=/home/rjonasz/Applications/.bin:/usr/bin:/usr/local/sbin:/usr/loca l/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_pe rl XDG_SESSION_TYPE=x11 PWD=/home/rjonasz SHLVL=1 HOME=/home/rjonasz XDG_SEAT=seat0 XDG_SESSION_DESKTOP= LOGNAME=rjonasz DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus BROWSER=/usr/bin/xdg-open DISPLAY=:0.0 XDG_RUNTIME_DIR=/run/user/1000 XDG_CURRENT_DESKTOP= XAUTHORITY=/home/rjonasz/.Xauthority OLDPWD=/home/rjonasz LANG=en_CA.UTF-8 MAVEN_OPTS=-Xmx512m MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins GTK2_RC_FILES=/home/rjonasz/.gtkrc-2.0 GTK_MODULES=canberra-gtk-module INFINALITY_FT_FILTER_PARAMS=08 24 36 24 08 INFINALITY_FT_FRINGE_FILTER_STRENGTH=25 INFINALITY_FT_USE_VARIOUS_TWEAKS=true INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=25 INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=15 INFINALITY_FT_STEM_FITTING_STRENGTH=15 _=/usr/bin/env E_START=/usr/bin/enlightenment_start E_START_TIME=1459993467.5 E_PREFIX=/usr E_BIN_DIR=/usr/bin E_LIB_DIR=/usr/lib E_DATA_DIR=/usr/share/enlightenment E_LOCALE_DIR=/usr/share/locale PANTS=ON DESKTOP=Enlightenment QT_QPA_PLATFORMTHEME=gtk2 XDG_DATA_DIRS=/usr/share/enlightenment:/usr/share:/usr/local/share:/usr /share XDG_CONFIG_DIRS=/usr/etc/xdg:/etc/xdg XDG_MENU_PREFIX=e- E_CONF_PROFILE=standard E_ICON_THEME=nouveGnomeGray E_IPC_SOCKET=/run/user/1000/e-rjonasz@488d809c/:0.0-20827 E_SCALE=1.199 E_RESTART=1 E_TAINTED=NO TERMINOLOGY=1 TERM=xterm XTERM_256_COLORS=1 ZSH=/home/rjonasz/.oh-my-zsh PAGER=less LESS=-R LC_CTYPE=en_CA.UTF-8 LSCOLORS=Gxfxcxdxbxegedabagacad --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

On Wed, 2016-04-06 at 22:14 -0400, ted leslie wrote:
run df & mount in both env. compare. also you may want to find out exactly how your encrypt part is mounted and what tech it uses. Ultimately you should be able to mount it manually, and then you can try those step from a non-mount state to a mounted state with each login method as well, it may shine light.
OK, this is very puzzling. I ssh into my laptop from my laptop and df and mount do not list this drive as mounted! I have two nfs mounts that autofs mounts and they show up. I can even manually mount the backup drive in the ssh session on the same directory it is mounted from xterm shell. I'm confused as to what is going on.
participants (2)
-
Randy Jonasz
-
ted leslie