SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

0
votes
0answers
31 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
32 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
0answers
11 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
26 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
0answers
47 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
39 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
55 views

Disable certain keystrokes for SSH users [on hold]

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
21 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
38 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
18 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
6 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
24 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
53 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
17 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
24 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
46 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
83 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
41 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
56 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
25 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
70 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
69 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
53 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
12 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
27 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 user1@162.244.XXX.XXX:home/filename.tar ./ got a Permission ...
1
vote
1answer
27 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
96 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
48 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
31 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
41 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
17 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
4answers
92 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 ...
1
vote
1answer
144 views

ssh connection to server closed after authentication immediately

I'd like to connect ssh://challengeuser@web1.ncc.ninja:2222, but after the authentication and the example output below are displayed, the connection is closed immediately. I can use ssh to connect ...
4
votes
2answers
121 views

SSH Gateway in ~/.ssh/config

What is the difference between the following? Host foo ProxyCommand ssh example.com -- /usr/bin/nc %h %p 2> /dev/null and Host foo ProxyCommand ssh -W %h:%p example.com Which one ...
1
vote
0answers
45 views

Opening multiple tabs in gnome-terminal, having them automatically password-lessly ssh to servers and do so using alias from my bashrc file

I regularly have to ssh into four or so servers we run, at the same time. I have aliased these like. SERVER1=root@server1 alias sshserver1='ssh -t ${SERVER1} "bash -rcfile .my_bashrc"' # Above line ...
-1
votes
0answers
27 views

How to view “Compiled in modules” in apache 2.4?

I have reference this article to install "apache 2.4.10" in "centos6.5 x64" install folder is "/opt/rh/httpd24" and configure file is "/opt/rh/httpd24/root/etc/httpd/conf/httpd.conf" now i can start ...
1
vote
1answer
64 views

Enable port 443 for ssh connection

I am trying to setup ssh on my port 443 but unfortunately I am not able to do it. Here are the things I tried. Set up the remote daemon running sshd on port 443 and restarted sshd service. sshd ...
2
votes
2answers
45 views

run a local SOCKS proxy tunneled through SSH

I was going through this post and couldn't quiet follow what is being implied there. A great "feature" I use every day at work: The ability to have SSH listen on port 443 so I can create a ...
3
votes
1answer
23 views

SSH session chain

Suppose I do a SSH session chain within one single unique terminal window (RHEL6) open terminal on localMachine, SSH remote login to server1 from server1, SSH remote login to server2 from server2, ...
0
votes
3answers
19 views

Open tunnel only during local command run [duplicate]

I have a script that needs a tunnel to a remote server. Something like this: ssh -fNL 8080:localhost:80 my_server How can I close the tunnel after my local script ends? The above example is just ...
0
votes
1answer
30 views

Loop in script on remote server doesn't work

#!bin/bash client=`cat temp.txt` ssh node2@192.168.1.190 'while read line; do mkdir -p /tmp/$line ; done <<< "$client"' cat temp.txt has 2 lines: nk124 nk124 Above is my script, it does ...
1
vote
1answer
19 views

Forward every port depending on domain

A friend and I are doing some little webhosting for us. Currently all the pages are running on one Server via Apache2's virtual hosts. Know we wanna make single servers for each site with ssh-access, ...
0
votes
2answers
22 views

One SSH session one script multiple terminals no X [closed]

I have read other posts asking the same question in the answer was, run your script and have it like this: #!/bin/bash xterm -e command The problem is that I don't have X installed on that server, ...
0
votes
0answers
15 views

Simulate the remote host identification warning [duplicate]

I need to simulate the warning: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING ...
2
votes
5answers
71 views

Simulate the remote host identification warning

I need to simulate the warning: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING ...
0
votes
2answers
64 views

How to transfer file from windows to Unix Machine

I am working in Windows machine I have connected to Unix Machine using Putty, I want to transfer file from my local Windows Machine to Connected Unix Machine, Please suggest what is the command,
0
votes
2answers
58 views

Permission denied when run script via ssh

I wrote script which download via scp and install some packages. SSH keys are added to host and when I run [root@HostB ~]# ./myscript everything is ok and packages are downloaded via scp without ...