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

learn more… | top users | synonyms

0
votes
0answers
89 views

Cannot login to SSH with public key

I'm using Yosemite 10.10.5 I think the problem is im missing a file called id_dsa - I have an id_rsaand and i've added the contents of id_rsa.pub to my servers ~/.ssh/authorized_key file. Here is ...
3
votes
5answers
817 views

Is it possible to enable/disable SSH using cron

I would like to disable the ssh server for certain times of the day. I would like to do this because I recently experienced a brute force compromise via ssh. Can crontab be used to enable/disable SSH? ...
1
vote
2answers
98 views

Passing variable definitions to specific shells in ssh

I would like to ssh to a machine with a pre-defined setting, specifically in zsh. To do so, I have tried doing the following from the client (inspired by this answer): $ ssh -t machine@domain ...
2
votes
0answers
173 views

named pipe proxy over SSH

I am used to forwarding a remote service port on localhost using ssh like: ssh -L 2181:localhost:2182 user@server (forward remote host port 2182 to local port 2181) now, from the machine I ssh to, I ...
1
vote
1answer
67 views

Is a ssh server used in port forwarding considered as a proxy?

In local port forwarding, is the ssh server, client or both proxy (server) ? In remote port forwarding, is the ssh server, client or both proxy (server) ? In dynamic port forwarding, is the ssh ...
0
votes
2answers
159 views

ssh me@remote “<script with a for loop and variables>” - problem with variable expansion in for loop in remote script

Note - I posted a similar question yesterday and got a bit further thanks to @cas but am still having problems. I've refined the question so have re-asked it. I'm passing script text to an ssh ...
0
votes
1answer
141 views

Cannot ssh login to remote server using public key authentication

I am trying to login to the remote server using ssh client from ubuntu, but public key authentication does not work and asks me to enter ssh password. Here are the debug report, don't know what does ...
3
votes
2answers
343 views

Passing script string to ssh from within a bash script function - variable evaluation problem

I'm trying to write a bash script that runs a remote script via ssh as below: #!/bin/bash logfilepattern="*drupal*.gz php*.gz error*.gz" function getlogcounts { echo "in getlogcounts" echo ...
0
votes
2answers
424 views

Unable to connect to Linux VM from Windows 7 Desktop

ssh destination: --VM : Oracle VM Virtual Box 4.3.20 --Linux installed on VM: Fedora 22 (IP: 10.0.2.15 ) ssh source: --Windows 7 Desktop I installed putty on Windows 7 Desktop and am trying ...
0
votes
1answer
45 views

SSH remote execution of program resource usage?

If I were to log on to remote host using ssh and run a program there, does the program use resources (CPU etc) of local machine or remote host? If it is the former is there a way to make it run using ...
1
vote
1answer
67 views

chroot directive in sshd_config fails to exclude users

In Ubuntu, I have this SSH server configuration set up in /etc/ssh/sshd_config: Subsystem sftp internal-sftp UsePAM yes ChrootDirectory %h ForceCommand internal-sftp GatewayPorts no ...
0
votes
2answers
224 views

Anyway to incorporate sudo into an SSH ProxyCommand?

At work, we have a SSH jump host that requires us to use sudo ssh to SSH into the destination host. Something like this: ssh jump-host sudo -u sshuser ssh final-host I'm trying to incorporate this ...
2
votes
1answer
43 views

Launch a command when connected to a host

In a dormitory I live in the access to Internet is somehow clumsy. The procedure follows Connect to the network (via WiFi/Ethernet) Login by ssh sshpass -p password ssh login@domain.edu.pl ...
0
votes
1answer
32 views

Increase a number using ssh

Suppose 3 hosts called host1 ,host2, host3 I want to replace the string 5801 on file /etc/FAKEFILE using +1 for every host,with sed(but perl,awk also ok) using ssh. Must return 5802 on host1 5803 on ...
0
votes
1answer
49 views

SSH run command in users rbenv enviroment

Anyone know how to make ssh source the users enviroment? ssh -Y -t old-dash '"bundle exec rails server" bash: bundle exec rails server: command not found Connection to old-dash closed. ...
0
votes
0answers
120 views

Cannot see files present on server when connecting via Filezilla / SFTP

I am not able to see the files present on the server using Filezilla ftp client. I am using SFTP connection. I am able to connect to the server. I can see only the directories but not the files. ...
1
vote
1answer
90 views

can I use ssh to send build command for android building?

I'm new in Linux, but learning bits by bits.. So please give explanation too, instead of only the answer, to help me understand about why and how. Currently I want to build an android rom with ...
0
votes
0answers
30 views

ssh fails despite AllowUser modification

I have a ubuntu linux server with several users who were previously able to access via ssh. I recently updated to the latest version of ubuntu and had to recreate all of the user accounts, which are ...
-2
votes
1answer
46 views

Script To Update Multiple Hostnames

Needing a script to read row by row, then ssh into the machine and update the hostname of the machine, then exit and continue with the next row. We have a cvs file that contains the previous hostname ...
0
votes
0answers
610 views

Why `host` and `nslookup` on Ubuntu resolve hostnames while `ping` and `telnet` do not?

I can't use git clone or even apt-get install because I get a "cannot resolve host" error. They were working before, but I have no idea what changed that broke the DNS resolve. I can't find any ...
0
votes
1answer
87 views

Why are the bytes I'm receiving not the bytes I sent?

I've been working my way through a security games site, trying to automate what I'm doing using pwntools. I've come across a problem somewhere in my process, however. When I try to run the vulnerable ...
1
vote
2answers
255 views

Automatically entering ssh password from Busybox terminal

I currently am attempting to reboot a modem via ssh using a bash script. For reasons I don't feel like explaining, I NEED to start on an ubuntu server computer, ssh into a setup running busybox 1.21.1 ...
0
votes
0answers
22 views

Why wont my ssh key work on a different port? [duplicate]

Edit: This answer, fixed my problem. I have used ssh-copy-id to move my ssh key to my server. I have changed it so that my server is listening for ssh connections on port 50505 instead of the ...
0
votes
0answers
60 views

root's login shell is invalid, how do I restore it?

I have accidentally changed the root user's shell from /sbin/sh to /sbin/false. I don't have any other login and the only way I can access to system is through SSH. How can I retrieve back root ...
10
votes
5answers
816 views

How can I configure such that I can always SSH to my system over the internet on a dynamic IP?

Basically I want to be able to do something like teamviewer, where regardless of what the network configuration is, as long as both my ssh server (Machine A) and ssh client (Machine B) have internet ...
1
vote
2answers
110 views

SSH to servers with sudo access - script throws unexpected end of file error

I've to run a command iptables --flush in 100+ servers. I don't have root credentials, but have sudo access for my account. So I come up with a below script to run the command in all servers. I added ...
0
votes
1answer
13 views

EDID KWorkers Overflow

I'm using the IMX6 Quad from Freescale. I'm implemented a custom Linux on it for a personal homemade project. I've noticed a very stange behavior. Some times, randomly, I've got two KWorkers ...
0
votes
1answer
470 views

Firewall blocking SSH/SFTP connections. How to cheat it?

Hi folks (sorry for the bad english) I'm a college student, and I live in the student's house of my university. I study computer science, and there we have the right to a space in a nfs server to ...
-1
votes
1answer
82 views

Matlab crashes after screen session disconnect and reconnect

Please forgive the cross-post from matlab answers. This received no response over there. I'll try to go into a bit more detail with this post. ...
1
vote
1answer
67 views

X11 Forwarding Issues - Wrong Authentication

I am trying to configure X11 forwarding through SSH on my home server. The server is running Debian Jessie (hostname moonraker) in a headless configuration. My client is running OS X 10.10. I have ...
0
votes
1answer
47 views

Bash script - sshing into one computer and then immediately into that comupter's network's modem

I am currently attempting to automagically reboot my modem that for some reason or another will only allow certain types of small Linux OS's to ssh into it - and not the one I am using. So, rebooting ...
1
vote
2answers
726 views

SSH into VirtualBox on Mac

I just installed VirtualBox on my mac, created a new Ubuntu Virtual Machine with "Use an existing virtual hard disk file" of the Cloudera Hadoop disk image. I'm able to start and run the virtual ...
0
votes
1answer
81 views

Access my web server publicly

On my Debian server I have a eth0 interface (192.168.10.x) and I just added eth1 (176.31.36.x). I would like to set up a public access for ssh, web, ..etc. allow-hotplug eth1 iface eth1 inet static ...
0
votes
0answers
343 views

How to restart ssh server / sshd on Linux?

I am trying to restart the ssh server on my server which is running Fedora Cloud. I have tried the method here http://www.cyberciti.biz/faq/howto-restart-ssh/ (# service sshd restart) and get Failed ...
0
votes
0answers
2k views

SSH connect to host port 22: Connection refused

After I booted up my system today, I can't connect using ssh to a debian server. Here is the result of running ssh with -vvv ssh xxx@ssh.xxx.com -vvv OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015 debug1: ...
2
votes
2answers
288 views

Can't connect to another user than root through SSH

I'm trying to connect to a server on my local network using SSH and would like to be able to login as storm but not as root (for obvious security purposes). I copied my .pub key to the ...
0
votes
2answers
45 views

How to resume a program when logged in with different session

Here is the scenario: Let's say that I log into my server via ssh and start an emacs or vi (or whatever other program) session. Then my ssh connection disconnects. Is there a way for me to reconnect ...
2
votes
1answer
111 views

How to Use who/w with Non-Interactive SSH logins

I'd like to perform selective shutdown of a server in my house after backing-up over SSH. My post-backup script waits for five minutes and then runs a very short 'safe shutdown' script located on the ...
2
votes
0answers
112 views

Restrict SFTP users to different directories

How can I restrict some users/groups to some directories? I mean different users, different directories. What I have: Ubuntu 14. Experience with Ubuntu: Just started. What I have tried: I read ...
2
votes
1answer
80 views

In bash, how can I use a here document but then open stdin?

My example is that I'm tunneling through a server and want to create a command to type in a password but leave stdin open once that's done. For example I need to sudo to a different user everytime I ...
4
votes
1answer
203 views

Predicting the PID of previously started SSH command

This is the weirdest thing. In a script, I start an SSH tunnel like so: ssh -o StrictHostkeyChecking=no -fND 8080 foo@bar This starts an ssh instance that goes into the background, and script ...
2
votes
1answer
69 views

Configure Tor Browser to run over SSH SOCKS proxy?

I'd like to proxy all of my Tor Browser traffic through my home network remotely over SSH. If I have SSH access to a computer in my home network and a Tor Browser bundle here, how can I set up the ...
2
votes
1answer
134 views

Run qsub on cluster via ssh

I'm setting up a system which automatically generates computing jobs on a local (Linux) machine, copies them to a cluster and submits them to the queuing system. I try to avoid the need for scripts ...
2
votes
1answer
61 views

How to find out what floods the terminal?

When logged in via SSH to an AIX 6.1: 0:root@SERVER:/root # Message from root on SERVER (UNKNOWN) [Fri Sep 18 08:00:17 2015] ... Message from qdaemon: : (WARNING) Connection to server failed. ...
2
votes
1answer
69 views

How can I startx and have it run a script remotely via SSH?

I have the following script, which starts X and launches a graphical program: #!/bin/sh #startGraphics.sh #Starts X and runs the graphics program xinit /opt/common/graphics/bin/launchGraphics.sh ...
0
votes
1answer
31 views

How do you add already generated ssh keys to linux machine?

I've used Putty on a windows machine to generate a key pair. I now want to add this key to my linux laptop. Is there a way to place my key into my .ssh directory to use when trying to access the ...
0
votes
1answer
144 views

Bash script with ssh not returning value of variables

I'm working on a bash script to help migrate KVM virtual machines, but I'll be using dummy code to explain what is going on. I'm using functions to break up the tasks perform on a remote servers ...
0
votes
0answers
69 views

ssh with keys - want to use pam_tally2 - but cannot get it to work

I have configured pam_tally2 before on Centos 6 for users that use passwords for authentication. However, in this case I am only using keys to login (no passwords). It seems that pam_tally2 is not ...
0
votes
3answers
61 views

Open new graphic terminal via ssh

I would like to log in from machine A to machine B -- and regardless or whether anyone is logged in on B* open a new graphical terminal on :1**. To further clarify: This is a lab situation with one ...
6
votes
2answers
391 views

Send the password through stdin in `ssh-copy-id`

I need to automate some identity deployments, ideally using ssh-copy-id. I'm trying to provide the password through stdin, which is possible on ssh by using the -S flag. I'm aware that I can send ...