Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
285
views
SSH jump proxy to access RSH-only endpoint
The setup: only a single server in the group is acessible via SSH. Others are accessible from the former via RSH only. So when I want to execut a command on other servers, I do this: ``` $ ssh asd10 rsh asd7 hostname ASD7 ``` Is it possible to combine this into `ProxyCommand` in the [classical SSH j...
The setup: only a single server in the group is acessible via SSH. Others are accessible from the former via RSH only.
So when I want to execut a command on other servers, I do this:
$ ssh asd10 rsh asd7 hostname
ASD7
Is it possible to combine this into ProxyCommand
in the classical SSH jumphost way?
> A configuration like this will allow you to proxy through HOST A.
>
> > $ cat .ssh/config
>
> Host host-a
> User your_username
> Hostname 10.0.0.5
>
> Host host_b
> User your_username
> Hostname 192.168.0.1
> Port 22
> ProxyCommand ssh -q -W %h:%p host-a
>
>
> Now if you want to connect to your HOST B, all you have to type is ssh host_b
... so I could run:
$ ssh asd7 hostname
ASD7
?
**[Supplemented]**
If I go straightly like @cas asked:
$ ssh -t -o ProxyCommand='ssh asd10 rsh %h' asd7 hostname
tcgetattr: Invalid argument
ioctl TIOCGETP: Invalid argument
ioctl TIOCLGET: Invalid argument
ioctl TIOCGETC: Invalid argument
ioctl TIOCGLTC: Invalid argument
ioctl TIOCGETP: Invalid argument
ioctl TIOCLGET: Invalid argument
ioctl TIOCSLTC: Invalid argument
ioctl TIOCSETC: Invalid argument
ioctl TIOCSETN 3: Invalid argument
ioctl TIOCLSET: Invalid argument
Killed by signal 2.
... it stays in a loop until I press Ctrl-C.
It probably waits for the input and then generates no output. I haven't used a working shell session in parallel to check if the former actually spawns any new processes.
saulius2
(151 rep)
Oct 28, 2019, 08:35 AM
• Last activity: May 8, 2023, 10:37 AM
0
votes
0
answers
246
views
KDE Plasma ' Archlinux: my cursor jumps and clicks everywhere and it has become more severe
**Problem:** my cursor jumps and clicks everywhere, and it has become more severe - it is maddening :'( This question I have seen before in forums and tried their suggestions, but I still have this problem. **What I tried:** 1. I found a possible solution: lowering KDE Plasma's sensitivity, but this...
**Problem:** my cursor jumps and clicks everywhere, and it has become more severe - it is maddening :'(
This question I have seen before in forums and tried their suggestions, but I still have this problem.
**What I tried:**
1. I found a possible solution: lowering KDE Plasma's sensitivity, but this dialogue window was gray colored.
2. Then I found the reason and solution for this graying: it was libinput. Here are the links I read:
https://www.reddit.com/r/kde/comments/d21mwv/why_are_my_touchpad_sensitivity_settings_greyed/
and
https://forum.kde.org/viewtopic.php?t=130072 - see coryw Thu Mar 21.
But removing libinput makes my keyboard non-functional.
**Now:** I do not know what I can do.
**System:** Arch-linux for Surface Pro 4 and KDE up to date.
Best and thank you in advance,
Roberto
**I FOUND THE SOLUTION!:** disable touch screen instead of touchpad, see:
https://unix.stackexchange.com/questions/590012/mouse-cursor-jumping-around-the-screen-and-clicking-on-hp-pavilion-x360
**This information tells you how to disable touch screens for Arch Linux:**
https://growworkinghard.altervista.org/enabledisable-touch-screen-on-arch-linux/
I hope others will solve this problem of a jumping cursor!
P.Roberto Bakker ev Doornebal
(3 rep)
Aug 21, 2021, 07:51 AM
• Last activity: Sep 23, 2021, 08:28 AM
7
votes
2
answers
25723
views
zsh completion installations (autojump) - How to use them?
I just installed `autojump` and have `oh-my-zsh` installed in my system. I have included the log of the installation at the bottom of this post. Note that at the end it says: zsh completion has been installed to: /usr/local/share/zsh/site-functions What am I supposed to do with this information? How...
I just installed
autojump
and have oh-my-zsh
installed in my system. I have included the log of the installation at the bottom of this post. Note that at the end it says:
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
What am I supposed to do with this information? How do I notify Zsh of this zsh completion
?
Also, whenever I now login with my Zsh shell, I get:
/usr/local/Cellar/autojump/21.6.9/etc/autojump.bash:13: command not found: complete
/usr/local/Cellar/autojump/21.6.9/etc/autojump.bash:52: = not found
Why? How can I fix this?
$ brew install autojump
==> Downloading https://github.com/joelthelion/autojump/archive/release-v21.6.9.tar.gz
############################################################################################################################ 100.0%
==> Caveats
Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
to source the file to update your current session):
[[ -s brew --prefix
/etc/autojump.sh ]] && . brew --prefix
/etc/autojump.sh
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
Amelio Vazquez-Reina
(42851 rep)
Jan 29, 2014, 10:31 PM
• Last activity: Aug 19, 2018, 09:14 AM
1
votes
1
answers
64
views
may be its related to Jump server
I am very much confused with the environment I am newly working with. Can any one give me a elaborative idea about this please. step 1: I am logging into the server by passing the hostname as "ujump" in Putty. Step2: Using my LDAP id to login into the session. Step3: using command `ssh xtabidv2` to...
I am very much confused with the environment I am newly working with. Can any one give me a elaborative idea about this please.
step 1: I am logging into the server by passing the hostname as "ujump" in Putty.
Step2: Using my LDAP id to login into the session.
Step3: using command
ssh xtabidv2
to login to another server named "ssz0287" (its the hostname)
>> login as: pbehf
>> password:
>> pbehf@lxv0734 [/home/pbehf] $ ssh xtabidv2
>> password:
>> pbehf@ssz0287 [/home/pbehf] $ -->
>> pbehf@ssz0287 [/home/pbehf] $ --> hostname
>> ssz0287
>> pbehf@ssz0287 [/home/pbehf] $ -->
Here the homepath "/hosme/pbehf" is same though I am doing ssh to another server. If I will change anything under my this Homepath, it will reflect every where.
lets check this as well;
>> pbehf@ssz0287 [/home/pbehf] $ -->
>> pbehf@ssz0287 [/home/pbehf] $ --> ssh xtabidv1
>> Password:
>> pbehf@ssz0292 [/home/pbehf] $ --> hostname
>> ssz0292
>> pbehf@ssz0292 [/home/pbehf] $ --> pwd
>> /home/pbehf
Still the same homepath. And if I will change here anything now, that too will reflect in all my Homepath. This pretends to the same homepath I am being landed firstly irrespective of ssh
server.
Can anyone please let me understand the concept here.
Thank you in advance !
PriB
(479 rep)
Nov 15, 2016, 06:46 AM
• Last activity: Nov 15, 2016, 07:24 AM
1
votes
2
answers
901
views
Using autojump on Centos Linux with zsh gives error?
On Centos Linux, switching to zsh causes autojump to give me this error: -bash-4.2$ zsh /etc/profile.d/autojump.bash:13: command not found: complete How to fix it?
On Centos Linux, switching to zsh causes autojump to give me this error:
-bash-4.2$ zsh
/etc/profile.d/autojump.bash:13: command not found: complete
How to fix it?
qazwsx
(177 rep)
May 12, 2016, 06:28 PM
• Last activity: Oct 3, 2016, 12:46 PM
1
votes
0
answers
94
views
autojump : favor folders that share the most parents with current directory
Say I have following folders hierarchies : /home/kray/virtualenv/dev1/myproj/bin /home/kray/virtualenv/dev2/myproj/bin And i type in a console: $ pwd /home/kray/virtualenv/dev1/ $ autojump bin can I configure autojump so that, in this case when I'm located in `dev1` dir, it always jumps to `./myproj...
Say I have following folders hierarchies :
/home/kray/virtualenv/dev1/myproj/bin
/home/kray/virtualenv/dev2/myproj/bin
And i type in a console:
$ pwd
/home/kray/virtualenv/dev1/
$ autojump bin
can I configure autojump so that, in this case when I'm located in
dev1
dir, it always jumps to ./myproj/bin
instead of changing of virtualenv to jump to /home/kray/virtualenv/dev2/myproj/bin
.
So can we make autojump take the context (parent folders) into account instead of solely basing its judgment on directories popularity (number of times I visited the folder in the past) ?
kraymer
(61 rep)
Nov 19, 2014, 11:26 AM
4
votes
1
answers
1874
views
Autojump auto-complete feature does not work
On my configuration, autojump *autocomplete* feature does not seem to work. To be clear, autojump works properly, only the autocomplete feature fails to work. When I press the ` ` key, the autocompletion menu is not displayed but the directory name I typed is partially enclosed in quotes. Here is wh...
On my configuration, autojump *autocomplete* feature does not seem to work. To be clear, autojump works properly, only the autocomplete feature fails to work.
When I press the `` key, the autocompletion menu is not displayed but the directory name I typed is partially enclosed in quotes.
Here is what happens. **Note that after typing liba, I pressed the `
I am using :
* Konsole 2.12.4 (KDE 4.12.4) (but I have the same issue with xterm)
* Liquidprompt
* Bash 4.3.11
* Autojump 21.6.9
Here is the bottom of my
key multiple times**. I would have expected autojump to cycle through
/tmp/liba1 and
/tmp/liba2. Also not that
/tmp/liba2 only appears after I pressed the
` key.

.bashrc
file :
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# Liquidprompt
source ~/.liquidprompt/liquidprompt
# Autojump
. /usr/share/autojump/autojump.bash
Xion345
(759 rep)
May 14, 2014, 12:02 PM
• Last activity: Jul 18, 2014, 06:40 PM
Showing page 1 of 7 total questions