Tagged Questions

Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices.

learn more… | top users | synonyms

1
vote
0answers
254 views

IP forwarding with iptables

Suppose there are hosts A and B. A is allowed SSH access to B based on its IP address. Consider now another host C. C does not have access to B, but if we could route its traffic through A, then C ...
2
votes
4answers
2k views

loading local shell aliases to ssh session dynamicaly

When I log in to some machine using ssh I wish my aliases and functions are there. In other words, log in to some machine I wish I can use my command shortcuts. I need it be dynamic, every time I'm ...
1
vote
1answer
37 views

Setting up ssh group keys without affecting ~/.ssh/config in Linux

I have to setup an ssh group key used for publishing to a remote git repository. As git (as well as I presume many other programs) don't allow defining a flag lag ssh -i the information which key is ...
0
votes
1answer
147 views

Change the number of consecutive frequent ssh login before temporary blocking the user login

my server currently would temporarily refuse a user to login for certain amount of time (maybe ~20min) if the user consecutively frequent ssh login for 3 times. Can I change this behaviour (say ...
1
vote
1answer
880 views

How to automating Putty Shell task on Windows 7?

I am interested in connecting by shell (Putty or another tool) (I have cygwin and OpenSSH ) This is what I wish to accomplish: Upload some files by scp (from Windows 7) Connect to the remote server ...
0
votes
1answer
631 views

recursively unzip filenames with spaces in linux and save log

I used >> logsave path/log.txt find . -name "*.zip" -exec sh -c 'unzip -l {} | head -n 7' \; to get the list of files inside zip files in a particular folder. Here is a problem if the filename ...
1
vote
1answer
68 views

ssh starting with commands

I want to add alias that ssh to remote machine, run few commands on it and then give me back the control to continue using this machine. when I'm trying to run: ssh machine_ip 'command' the SSH ...
0
votes
1answer
94 views

ssh key reset every computer restart

Every time I restart my computer I have to ssh-add my ssh key. I already have ssh key added on github. Does anyone know how to fix it? Thanks.
0
votes
2answers
1k views

X11 display over ssh with monitor connected to remote machine

I have the following setup: Machine A (a.corp, 192.168.100.130, local machine) and Machine B (b.corp, remote machine) and a monitor is connected to each of these machines. When I ssh from a.corp to ...
1
vote
1answer
442 views

Redirect output of remote python app started through ssh to file

I have a python app in a remote server that i need to debug, when I run the app locally it prints some debug information (including python tracebacks) that i need to monitor. Im trying to redirect ...
1
vote
1answer
2k views

How to deal with ssh's “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!”? [duplicate]

Possible Duplicate: Ignore known-hosts security in SSH for some addresses I often need to login to multiple remote stations that are just placed to the same static IPs for me. SSH complains ...
0
votes
1answer
121 views

ssh loop files and transfer locally

I am logged in via ssh to server1, while on server1 I want to get files located in a git repository on server2 and save them on server1 to do something with them (a script to save to a database) The ...
1
vote
1answer
62 views

unable to ssh on the command prompt

I have a problem with ssh on my ubuntu laptop, but after several effort I was able to get the putty work by making changes to the proxy type: I check the http and set the proxyhost name to ...
0
votes
2answers
311 views

after config `~/.ssh/authorized_keys`, ssh works well but scp does not work

I change this file ~/.ssh/authorized_keys in remote server, shown below, and want to run a script when ssh to it. #Flyakite command="/home/path/to/script" ssh-rsa my-key now if I run ssh $USER@$HOST ...
0
votes
2answers
593 views

In ssh config file , can I use “Host” as parameter? If not, how can I make ssh config file accept parameter?

in .ssh/config file Scenario is that I have two public ips now (dynamic), one is connect to aws and one is connect to rackspace Both require different pem keys to connect. But I want to use ssh ...
2
votes
1answer
215 views

Passing Return Key via Shell Script

I'm using phpseclib to run a shell script on my server at a given interval. That script involves using nohup. For whatever reason, if there isn't a user ready to send SIGINT or a return to nohup once ...
2
votes
1answer
321 views

Is it possible to automatically attach to a tmux session using Chrome's Secure Shell extension?

Using Secure Shell in Chrome, can you automatically attach to a tmux session when SSH-ing to a server? If so, how do you do that?
4
votes
1answer
891 views

Escaping Variable in Cat

I'm trying to write a shell script over ssh via a bash prompt. The shell, however, insists on interpreting any variable I want to write instead of writing it directly to file. For example, cat ...
2
votes
1answer
99 views

Can I remotely monitor printf results of a C program?

I have a long running C program in which I've started from the Terminal.app using: gdb program_name gdb run I'm using many printf statements to monitor the progress of the program. Unfortunately, ...
1
vote
3answers
335 views

run cron on ssh, error message

how to run the script below * * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron" when i run the script, the error message show as below: $ * * * * * /usr/bin/wget -O - -q ...
0
votes
1answer
563 views

ssh tunnel through an intermediate host

I have configured an SSH tunnel to forward my web traffic from hostA to hostC using this command on hostA: ssh -D 2222 user@hostC after configuring my browser to use a proxy on port 2222. This ...
2
votes
2answers
424 views

How to Unzip only filenames recursively in many zip files using linux

I have multiple zip files inside a directory. In which I want the list of files inside each zip file. I dot want to extract them in the folder. presently I am able to extract them, after that only I ...
0
votes
2answers
843 views

Turn off a monitor through remote login

I need to know how to turn off a monitor through remote login in linux. And also how to turn it on. Pleas help....
2
votes
0answers
260 views

TortoiseGit stops connecting after a seemingly random amount of time

I use TortoiseGit to connect to a private remote git server, but after an indeterminate amount of time (possibly longer than 6 hours?), trying to connect results in a bad file number error. I've tried ...
3
votes
1answer
160 views

How can zsh be configured to not clear the screen at logout?

When sshing to a host, the screen is cleared at exit, which makes it impossible to review recent output. This behavior seems to be set system-wide in /etc/zlogout. How can zsh be configured to not ...
2
votes
2answers
955 views

what's the difference between /etc/init.d/sshd start and /usr/sbin/sshd?

I'm having issues with passwordless ssh. I've checked, double checked and checked again that I have everything set up correctly. Both machines are RHEL6 and when the destination machine first boots ...
1
vote
3answers
3k views

Term Enviroment Variable not set, when executing a Bash File via SSH

i am trying to run a bash script on a remote machine. If I open a ssh connection in a terminal, i can easily run the script. But when i run it like that: ssh user@ip < /etc/script I get an ...
2
votes
2answers
814 views

Using 'diff' command over ssh

If I have a folder with several files on my computer, and a copy of the same folder on a remote server, is it possible to run 'diff' through ssh so I can see the differences between my copy and the ...
0
votes
2answers
226 views

I logon via ssh and the first command is always screen. Can I make it either reconnect to same sesson or make a new one if one does not exist?

Basically what I want to do is something like this: screen -session-name=mydefaultscreen and if the 'session name' of mydefaultscreen doesn't exist, it creates it. if it does exist already then it ...
2
votes
1answer
420 views

TortoiseSVN connect via ssh: Network connection closed unexpectedly

I am trying to connect to an SVN repos via the svn+ssh protocol on Windows7 (32-bit). I have the server set up fine and can connect from my Linux box. When trying to connect from my W7 machine (I have ...
1
vote
1answer
433 views

SSH login without password prompt [duplicate]

Possible Duplicate: How do I set up SSH so I don’t have to type my password? I am trying to set up Opennebula. I want to set up my local host so that I can log into my remote host without ...
2
votes
4answers
703 views

How to connect to SSH with '@' character in username

I was given login credentials to a server and there is an @ character in my username. How can I make an SSH connection in my terminal? username: foo@domain.com host: domain.com I've tried $ ssh ...
4
votes
1answer
4k views

ssh config under cygwin

I have Cygwin installed on Windows 7. I made default install. I would like to use ssh config file (~/.ssh/config) to set host and options for connecting. Normal ssh command is not able to find the ...
0
votes
1answer
110 views

Suspend the process and not to cancel it after SSH logout

I'm loging via putty (SSH) to server on which execute my webserver program. With CTRL+Z and bg commands is webserver running on background but if I logout, the process is terminated. How can I prevent ...
0
votes
1answer
457 views

Running a remote command through an SSH Tunnel

I am trying to set up an ssh tunnel on my Mac OSX ('osx') to a server ('target') via an interim host ('gateway'). This tunnel needs to have a local (osx) port forward so that my Windows XP VM ('vm') ...
0
votes
2answers
94 views

How do you launch an SSH connection with port forwarding without interrupting your screen access?

I want to make an SSH connection to another server with forwarding, but without having to log on to the remote server, nor interfere with the screen I am working on. I also need to access the ...
4
votes
1answer
615 views

How does SSH tunneling work at low level?

I am interested in the exact mechanism that occurs when an SSH tunnel is stablished. Supposing we have 3 computers: LOCAL host, INTERMEDIATE host, and REMOTE host, with this topology: Localhost --- ...
1
vote
2answers
2k views

Play local audio on remote computer (Linux)

Is it possible to transfer audio from my local computer to a remote one, eg through SSH? I know this transfers mic to other computer dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp ...
0
votes
1answer
52 views

Looking at current desktop through ssh

Is there any way for me to look at the current running desktop through ssh? Meaning, if I ssh from machine A to machine B, I get terminal access in machine B. And if I run ssh -X from A to B, I can ...
1
vote
1answer
453 views

Avoid PuTTY SSH terminal to crash when disconnecting from server

I'm connecting via SSH to a remote 'live' server where I have some bash scripts automated via the crontab. When an error happens in some of the automation scripts within the server, the connection ...
0
votes
1answer
119 views

cygwin Xserver losing connection

I am running Xserver on cygwin (on top on Windows 7), and then using xterm to remote to linux via ssh -X, and run remote applications there, like konsole, emacs and others. Initially all works fine, ...
4
votes
3answers
2k views

sudo without password when logged in with SSH private keys

Is it possible to make sudo command to support SSH private keys, so that when the user logins using a private key then he/she could sudo without typing a password. This would allow storing the UNIX ...
3
votes
1answer
1k views

X11 connection uses different authentication protocol when using ssh -X

I cannot use X applications on one of my servers. (The same client succeeds in connecting to other servers so the problem is not on the client side). I connect with ssh -vvv -Y -4 jet (tried also ...
1
vote
0answers
345 views

nxclient crashes when trying to open a terminal from a remote client through “ssh -Y”

I support around 150 linux machines. I have 2 virtual machines on an ESXi server which I access via nxmachine v3 from a windows 7 box. These machines run CentOS5 with KDE and Lubuntu12.04.1 and they ...
2
votes
1answer
419 views

What are the recommended arguments for ssh-keygen?

What are the recommended arguments to ssh-keygen for generating a secure ssh keypair these days? The default appears to be 2048 bit RSA, good enough? I'm using OpenSSH_6.1p1, OpenSSL 1.0.1c 10 May ...
0
votes
3answers
1k views

how to prevent brute force attack on ssh?

i am running centos. how can i best avoid a brute force attack on my ssh server? I found this list: DenyHosts is a Python based security tool for SSH servers. It is intended to prevent brute force ...
1
vote
1answer
1k views

ffmpeg working when SSH but not when PHP exec

I am not sure why so first here is the error Array ( [0] => ffmpeg: error while loading shared libraries: libvpx.so.1: failed to map segment from shared object: Permission denied ) my PHP ...
1
vote
1answer
349 views

Proxy/tunnel Java and Chrome web traffic through SSH

I have a remote server through which I want to do most of my surfing. I have SSH/SFTP access to the server. Now, the ideal solution would be to run a tunnel in the background that'd connect and stay ...
0
votes
1answer
315 views

Log in DD-WRT router via SSH works, web front end does not

I can use SSH to log in as the root user, but the same credentials are not logging me into the front end. What is going on here?
2
votes
1answer
688 views

Using a vnc client through ssh tunnel

Laptop(osx-home network)------>Host1(linux-pc-college network)---->Host2(linux-pc-using vncserver on port 5901, can only be accessed from host1) I can access host2 through ssh using: [user@laptop ...