SSH (Secure SHell) is a protocol for running commands on a remote computer.
0
votes
0answers
18 views
Dynamic ~/.ssh/config
I'd like make my ~/.ssh/config file dynamically generated by a shell script (or anything else that prints to STDOUT).
Is there a UNIX trick to make reading a file result in executing a command & ...
0
votes
1answer
23 views
SSH connection gets lost, but not when logged in to MySQL
When I open an SSH connection to our database server and leave it open for a longer time, the connection gets lost at some point. I don't know why or how, but this happens a lot. I still see the ...
1
vote
2answers
21 views
SSH Tunneling Through a Firewall to a Cluster
I work at a university but I often work remotely. There is a cluster computer at the university that I need to be able to interact with, but its behind a firewall. Let's call the firewall F and the ...
0
votes
0answers
11 views
“Shell connection” item disappeared from Midnight Commander menu
I have performed an upgrade of my distro (openSUSE 13.1 -> 1.32) and now no long see menu item in Midnight Commander that allows me to perform operations with remote files via SSH. Coressponding menu ...
0
votes
1answer
38 views
sshd resets connections on different port
I want to run SSHd on my raspberry device on two ports. I've added
Port 22
Port 5500
to /etc/ssh/sshd_config, and ran /etc/init.d/ssh restart.
Problem is, that connection on port 5500 is always ...
3
votes
1answer
36 views
SSH for user without a login password
I have created a user without a password
$getent passwd logcoll
logcoll:x:998:999:Log Collector,,,:/var/backups/logcoll:/bin/sh
This user has no password, and this machine requires users to login ...
4
votes
3answers
174 views
Automatic login via ssh (no GUI environment installed / no ssh-agent available)?
I have three systems, and I want to have them doing backups between them periodically. The two of them, have Debian Wheezy installed and the other one has Ubuntu 12.04 installed. Only the Ubuntu has a ...
0
votes
0answers
12 views
Network communication between two nodes in a Hadoop cluster
I am running a 7 node hadoop cluster with each box running Ubuntu 12.04. It is running CDH4 setup using Cloudera Manager. It was already setup and running when I came in but now I'm running into a ...
0
votes
0answers
9 views
nohup, screen and tmux not working when closing connection on yocto linux (intel edison)
I have an Intel Edison with Yocto Linux and standard configurations. It had nohup pre-installed and I managed to install both screen and tmux (by compiling them from sources).
Now, I would like to run ...
0
votes
1answer
23 views
Is there a way to specify the list of private keys to add to ssh-agent?
After a few hours of digging, I finally found out why my computer stopped asking me for my key(s) using gnome ssh-askpass. It was very simple, but took me forever to figure out because... well... most ...
0
votes
1answer
17 views
Pinpoint strange text at initiation of SSH session
On my OpenSUSE 13.1 (Gnome 3) system, whenever I start a SSH session, somewhere in the initialization, the terminal outputs some strange lines.
Last login: Sat Nov 29 00:00:00 2014 from [HOSTNAME]
...
0
votes
0answers
9 views
How to troubleshoot: “X11 connection uses different authentication protocol.”
I start an ssh session with
localbox % ssh -vvv -Y remotebox 2>debug_ssh_log
...which succeeds.
Then I try to run xlogo on remotebox, but the command fails immediately, and the following lines ...
1
vote
0answers
17 views
GLX extension missing on display “localhost:10.0”
I have installed scilab 5.5.1 on rocks based cluster(with GPU card & nvidia driver installed), and i am able to successfully use scilab on the same .
Issue arises when i need to use scilab from a ...
1
vote
1answer
19 views
restricting remote vpn login to ip address in CentOS 7
I have read that OpenSSH itself does not support authentication via specific IP address. In a CentOS 7 installation on a web server, how would one configure the login so that a user would not only ...
1
vote
2answers
58 views
Unable to allow SSH access for new user [on hold]
I currently have an issue, what I am trying to do is disable the root login and use ssh to login as a new user, then su to root when needed.
I am unable to actually allow the user to login through ...
1
vote
2answers
109 views
Fake IP addresses generator
I have an application running on a server that adds a new iptable rule blocking every IP address trying to connect via SSH with a wrong password. Now, I'd like to perform a stress test where many ...
0
votes
1answer
37 views
How to create a script to run several scripts on different servers
I need to automate the execution of several scripts, and I'm writing a script.
The scripts have to run concurrently because they are part of a benchmarking suite.
I'm trying to execute 6 different ...
2
votes
1answer
18 views
Programatically / dynamically adjust SSH session port forwards
I have a workflow where I am trying to do the following:
For a given existing SSH session, access the remote machinne and perform a process from which a port is returned (e.g. a remote daemon has ...
2
votes
2answers
27 views
Securely making an SSH connection from a public computer
Today, I had to remotely connect to my debian computer at home to fix an issue with a VPN server.
I was using my iPhone with an SSH client to fix the issue, but I had a hard time due to the small ...
1
vote
1answer
54 views
Copy directory with SCP
I'm trying to copy directory from local drive to remote server with -r parameter, however I'm getting:
scp: System error: 1633648 (Failed to retrieve error string (err:317))
This is the syntax I ...
1
vote
0answers
50 views
User Acces restrict to only one folder
I am trying to establsih SFTP User rights at a server to only one folder, following the guidelines here:
...
0
votes
0answers
57 views
Disable certain keystrokes for SSH users [closed]
I wrote a script to disable some keyboard keys while a user is logged in from a terminal, but when a user connects to server via ssh with software like putty, commands like showkeys, loadkeys doesn't ...
1
vote
1answer
22 views
Remotely use SSH key authentication (3
I have a VM using ubuntu 14.04. running on a windows. If I use the terminal on the VM desktop, I can connect to my servers without passwords using registered SSH Keys.
When I connect to the VM from ...
4
votes
1answer
41 views
sound in firefox via ssh -X
I have a headless debian box with speakers. Suppose I'm at my laptop and I do
$ ssh headless -X
$ audacious
then audacious' window pops up on my laptop's screen. If I open a file then it ...
0
votes
0answers
23 views
DISPLAY is not properly set in multi-hop ssh with X11 forwarding
I have a NAT machine on AWS which acts as my gateway to several other servers in a private subnet (where I ssh as root). Using xming and putty I am able to connect to the NAT machine and then run an X ...
0
votes
0answers
15 views
Key-based authentication from PyCharm / JSCH to OpenBSD fails
I am trying to configure PyCharm (java-based IDE) to connect via sftp to a new OpenBSD 5.6 machine with an almost-default setup. However, it keeps returning an error "Algorithm negotiation fails". I ...
1
vote
1answer
25 views
Updating a bunch of Macs via SSH. Could use some help
all.
I'm working on a script that'll be running from our Mac server, and it will (hopefully) update all of our Macs via Munki (repo is on the same server) and the built-in softwareupdate command.
...
1
vote
2answers
56 views
Enable ssh root login
I have access to a CentOS server with a user that its not root but belongs to the sudoers list. I do not have the password of root, nor I can't find out what it is (policies of the people who gave me ...
0
votes
0answers
44 views
ssh with rsa key asks for password
I have a server with Ubuntu 14.04 x64 operation system.
Part of my sshd_config file (entire file):
Port 2202
Protocol 2
PermitRootLogin without-password
StrictModes yes
RSAAuthentication yes
...
1
vote
0answers
21 views
Fedora 20: irqbalance problems in logs, strange behavior
I'm seeing unexplained network behavior, such as sporadic inability to reach
beyond the subnet, passwords rejected for no apparent reason,
and SSH attempts constantly yielding that irksome ...
0
votes
0answers
27 views
ssh: remote port forwarding failed for listen port <privileged>, although root
ssh root@host -R 135:other:135
Warning: remote port forwarding failed for listen port 135
Why? I'm root, nobody's listening on that port, subsequent -L 135:... works:
ssh root@host -R ...
1
vote
1answer
61 views
SSH tunneling fails with “administratively prohibited: open failed” [duplicate]
I am trying to connect to internet via a server in local network. I don't have permissions to change server configuration.
I want to do a ssh tunnel to that server and via that using socks proxy, I ...
1
vote
2answers
84 views
Is there a reason for ssh and sftp being so unintegrated?
I am often working remotely with SSH and SFTP. The latter being basically a file copy protocol running over SSH, I am wondering whether there is a reason those two tools have not been integrated yet ...
0
votes
1answer
48 views
How to ssh and execute a remote script within a local shell script?
I have a shell script which will kick off a series of jobs on a remote server. I can ssh into this server (but it does require a password!) and run the scripts manually, but there are certain steps ...
1
vote
3answers
37 views
What will be prioritized in a conflict between ~/.ssh/config hostname and /etc/hosts?
What if one host is defined in /etc/hosts like:
192.168.0.100 server
and one is defined in ~/.ssh/config like:
Host server
HostName 192.168.0.100
and you ssh into server: ssh ...
1
vote
1answer
62 views
OS X SSH keeps asking for password [closed]
I connect from a Linux machine to several Macs over ssh using public/private keys.
The setup is the identical on every ac, different OSs from 10.5 to 10.9 and publickey working. Only one of them, ...
2
votes
2answers
26 views
temporarily disable login using one specific ssh key
On my server, I have several public SSH keys in ~/.ssh/authorized_keys.
I would like to temporarily block/disallow/deactivate one key. I want to prevent the user to log in using this key now. but I ...
1
vote
1answer
19 views
How to create a SOCKS only group?
I am currently trying to set up a user group that can connect to a server over SSH but only proxy through it. They can't see any files or run any commands. Users in the group would also be able to use ...
3
votes
2answers
73 views
Execute code on remote machine and copy the results back
I'm using some old Fortran code that uses some peculiar memory handling. To make the long story short, it runs on my local machine but fails on the remote one. This is why I would like to ssh to my ...
1
vote
2answers
70 views
SSH PC at office in local network from home
My office has one default gateway and behind that is a local network with locally assigned IP addresses to all computers including mine.
I hold admin in my Ubuntu installed office PC and is it ...
1
vote
0answers
59 views
How to add PuTTY private key to OpenSSH client
I am trying to setup scp on a new Ubuntu 14.04 system. This system will act as an SSH client to an already configured SSH server on another Ubuntu 14.04 system. I can use putty to SSH into the ...
1
vote
1answer
15 views
RYSNC over SSH not working for restricted shell
I need to give access to some Mr X in my production server so that he can push files to my server. Since there is no necessity to give him shell access , I decided to use restricted shell (rssh) so ...
1
vote
1answer
30 views
scp a file from one server to another one, got “permission denied”
source server IP 162.244.xxx.xxx
file -rwxrwxr-x 1 user1 admin 36005278 Sep 10 2013 filename.tar
at destination server
scp [email protected]:home/filename.tar ./
got a Permission ...
1
vote
1answer
30 views
How to save an SSH key passphrase in gnome-keyring?
I want to save an SSH key passphrase in gnome-keyring and then use it automatically when I need it.
How to do this?
4
votes
2answers
104 views
Why does my Python background process end when SSH session is terminated?
I have a bash script that starts up a python3 script (let's call it startup.sh), with the key line nohup python3 -u <script> &.
When I ssh in directly and call this script, the python ...
5
votes
2answers
50 views
Permissions depending on how you login: ssh/su/sudo
As user I have access to a remote linux machine where I can:
sudo su - other_user
Among other things, this allows me to add my own public key to authorized_keys for other_user, which effectively ...
0
votes
1answer
34 views
Frequently Internet Disconnects
I have installed RHEL 5.8 on IMB server. Also I have configured static IP through eth0. When I try to ping any website e.g. google.com, yahoo.com It works only for 25-40 seconds and internet ...
2
votes
3answers
46 views
Copying a file using SSH over a tunnel with cert forwarding
I need to find a way to copy files from mymachine to a server priv-server sitting on a private NATted network via a server pub-server with a public IP. The behind-NAT machine priv-server only has ...
1
vote
0answers
19 views
Determine DBUS_SESSION_BUS_ADDRESS from outside the X session
I've got mate-screensaver installed on a machine running Linux Mint 16. On that machine, I can open up a terminal and query the state of the screensaver:
dan@box1 ~ $ echo $DISPLAY
:0.0
dan@box1 ~ $ ...
1
vote
5answers
113 views
Interactive ssh works, but not rsync or scp, on OSX
The motivation is that there's a server that I can ssh into (with or without key pairs set up ... i.e., without or with a password) but that I cannot send files to via rsync, scp, or sftp. Someone ...