I recently purchased Terra-Master F4-220 but I can not sign in via ssh. I thing is I don't think it's on the TM end, I think it's on my debian server's end. When I do try and connect this is what I get. $ssh root@192.168.1.2 /etc/ssh/ssh_config: line 55: Bad configuration option: permitrootlogin /etc/ssh/ssh_config: line 55: Bad configuration option: allowusers /etc/ssh/ssh_config: terminating, 2 bad configuration options Here is a sample of the tail end of the /etc/ssh/ssh_config file. PermitRootLogin yes AllowUsers root garrett media plex rsync Any ideas as to what the problem could be. I purchased the TM becaue I …

Member Avatar
Member Avatar
+0 forum 1

I have a powershell script from PRTG that will ssh into a juniper device and allow me to exicute a command. I am trying to run "Request System Storage Cleanup" which works but the problem is the session asks for conformation of the clean up. Adding a carriage return and then yes in the same line does not work nor did adding another command. I cannot use "Request system storage cleanup no-confirm" due to the firmware is not new enough. Any suggestion on how to confirm the command? `param( $Computername = "", $Username = "", $Password = "", $Port = …

Member Avatar
Member Avatar
+0 forum 1

I just got a Macbook and I've always had a PC when it comes to doing worky stuff. (For many years I had an iMac at home, Dell at work, and I haven't had a mac at all for the past 4 years). First I had a problem installing Zend PHP Studio, which I created a different thread about. My problem now is I want to know how to make SSH shortcuts on my desktop to my servers. On Windows, I'm used to using PuTTY with a desktop shortcut that looks like this: C:\Users\dani\Desktop\PuTTY.exe daniweb@1.2.3.4 -pw PaSsWoRd I assume I …

Member Avatar
Member Avatar
+0 forum 5

hai am new to linux.i like to learn from this forum

Member Avatar
Member Avatar
+0 forum 3

I am using centos Please help what is SSH commands to do this: run a command 20 times, break 2 seconds, and repeated again so like this // run 20 times wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com //break 2 seconds // run 20 times wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com wget http://test.com …

Member Avatar
Member Avatar
+0 forum 5

Hi All, I'm trying to setup ssh key authentication on a git server and remove the password authentication. The server and any clients are all local at the moment. The clients are running Windows 7. I've got the ssh key part set up but I'm having trouble preventing the password authentication if no keys are found on the client. /etc/ssh/sshd_config: # Package generated configuration file # See the sshd_config(5) manpage for details # What ports, IPs and protocols we listen for Port 22 # Use these options to restrict which interfaces/protocols sshd will bind to #ListenAddress :: #ListenAddress 0.0.0.0 Protocol …

Member Avatar
Member Avatar
+0 forum 1

Hi All, I have a server that I'm using as a Git repository. I'm trying to clone from this repository to a GoDaddy server. I am getting the error "ssh: connect to host <my git server ip and port>: connection refused. I have checked the ssh_configs, sshd running, rsa keys, openssh-server/client, some stuff I forget, ... I haven't been able to fix the problem or google anything that has moved the issue along. I would talk to the kind folks at GoDaddy about this but the last two times I've called up I end up giving *them* technical support (and …

Member Avatar
Member Avatar
+0 forum 9

Team, Can any one assist me with my below script requirements I log into a jump box with my login and password, Here I need to create a script which i will run from this point that will connect to a different server using ssh and it should prompt me with the password for which i will key in the RSA token details, and once logged in, I do a sudo su - <username>, again i will fetch the password from my RSA token.after which i need to end the script with the pwd and ls -l command. Can any …

Member Avatar
+0 forum 0

Hello Community, I've been wondering if an SFTP connection would be worth it?

Member Avatar
Member Avatar
+0 forum 2

Hello everyone I have created a java program using jsch0.1.50.jar to remove the directories in the sftp server. But I could not remove the folder "03-03-2014" as it contains a subfolder named "1837hrs" when I try to run the program I am getting the following error: > 4: The directory is not empty. > at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2833) > at com.jcraft.jsch.ChannelSftp.rmdir(ChannelSftp.java:2109) > at SFTPrmdirinJava.main(SFTPrmdirinJava.java:40) So how do I remove all the directories and the subdirectories all at once, is this possible ? Please check my code: import com.jcraft.jsch.Channel; import com.jcraft.jsch.ChannelSftp; import com.jcraft.jsch.JSch; import com.jcraft.jsch.Session; public class SFTPrmdirinJava { /** * @param args …

Member Avatar
Member Avatar
+0 forum 1

In our college we practice python on ssh. This command prints all the computers ( processes ) logged in. ps -A | grep bash I was wondering how to obtain my process ID for that session.

Member Avatar
Member Avatar
+0 forum 4

Hi everyone! I am trying to set up a reverse ssh tunnel from a windows machine using Cygwin (openssh) , to a Linux server machine with static ip, so i can access the windows pc directly through the server from any other machine. My ultimate goal is to be able to connect through remote desktop (rdp) to the windows pc from any other pc through the ubuntu server. I managed to take the first step which is setup a ssh server in cygwin and to open a reverse ssh tunnel from windows pc to the server using the following command …

Member Avatar
Member Avatar
+0 forum 4

I have created a Virtual Machine of CentOS in virt-manager and cannot ssh to it. I get no route to host, even though: * The VM is in bridged mode * SSHD is started * The firewall on the Virtual Machine allows traffic on port 22 Does virt-manager have another firewall for virtual machines, is there a bug, or am I doing something wrong?

Member Avatar
Member Avatar
+0 forum 16

So Im using our university servers through an ssh connection. I have a bunch of files in a directory which I would like to run through a perl script. So I thought this simple script I concocted should do the trick. I have used similar script on my home computer to do renaming of files (replace last line with mv $file $newfile) and it worked all-right. Alas when I use this on our uni server. Then it will produce error message : ./super: line 4: syntax error near unexpected token `newfile=`echo $file | sed 's/ehed/ehedp/'`' Is it something to do …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone. I want to share with you a story about ***amasing student***. I knew one girl, she had Windows XP installed on her computer. One day her PC didn't work and she worried about that. She tried to turn it on, it turned and then it didn't show anything. So girl could not understand what had happened. In the same room there was linux specialist(he was using debian). He asked girl's PC, then he connected his computer to girl's PC and he did smth for 10 minutes and fixed the problem. I was so amased. I've asked him: > …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to connect to my Fedora machine using my SSH PEM Key. I've added the key to .ssh/authorized_keys and am still getting promted for a password. The machine can connect to other machine's with the key, but not my Fedora one. I've setup CentOS to accept SSH Keys but I believe this is my first time for Fedora, maybe there's an extra something I'm missing. I uncommented these lines in /etc/ssh/sshd_config and still no luck :( : RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys AuthorizedKeysCommand none AuthorizedKeysCommandRunAs nobody

Member Avatar
Member Avatar
+0 forum 3

I am doing a project and I need to monitor a program I run through ssh2, I need to get info while it is running but i dont know how to do that really. First this is my code (part of it): $stream = ssh2_exec($con, "make run"); $data = stream_get_contents($stream); while($buffer = fread($stream, 4096)) { $data .= $buffer; $mem = getMemory($con); echo "<br/> Total: ".$mem; } Does anyone know how I can get the memory a few times while the program I ran with make run is running?

Member Avatar
Member Avatar
+0 forum 1

I had written a script to login to some terminals and do some basic commands remotely. It fails at password entry. ******************************************************************* Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "cygwin" ' Give Cygwin time to load WScript.Sleep 2000 a=Array(112) For Each i In a WshShell.SendKeys "`ssh user@XX.XX.XX.XX" & i & " 'hostname;ps aux' " & "{ENTER}" WScript.Sleep 1000 WshShell.SendKeys "******" & "{ENTER}" WScript.Sleep 2000 Next *************************************************************** It's taking till password step fails very next. I had double confirmed the password.

Member Avatar
+0 forum 0

The MySQL database I want to use is using SSH tunneling and the MySQL connector provided from MySQL only allows normal connection. Can I somehow work around the SSH tunneling so I can connect Visual Studio with the database? Thank you :)

Member Avatar
Member Avatar
+0 forum 1

Hi, i m trying to ssh to a server and run a exe on that using a script file - runremote.sh All the prints generated by the exe on remote are being displayed on server 1 from where i have executed the script . But after sometime, the execution stops suddenly, dont know why .. is it that the ssh tunnel is getting broken /some ssh timeout happening?? the content in script file is something like ssh root@server2ip 'cd /export/home1/users/srinivas; sh test.sh start 1;' and test.sh is executing a exe (say test.out which is printing somestuff in while loop) Initially …

Member Avatar
Member Avatar
+0 forum 1

Can Anyone explain about how to establish a connection to a same server with different private/rsa/identity using identity file.

Member Avatar
Member Avatar
+0 forum 2

So I'm creating a backup GUI in Python which basically asks the user for their username/password and source directory so it can be rsynced over to a remote server. The only trouble I'm coming across is passing the password (entered in the GUI) to the server after I execute the command : [CODE]rsync -options source_path rsync_user@rsync_server:remote_path[/CODE] Since I want the user to authenticate everytime they use the GUI I don't want to setup an automated ssh key session. I looked a bit into Pexpect and Paramiko but expect doesn't seem very secure and I wasn't sure how to configure Paramiko …

Member Avatar
Member Avatar
+0 forum 2

The problem is that I want login to a remote pc using ssh through a python script. I don't want to use any ssh-keys (rsa keys,dsa keys etc.) nor do I want to use some extra module not incorporated in python standard libraries (telnet etc I guessed it is used in this from internet although I could not make out anything and it wasn't in my python documentation). I am a beginner in python and would not mind any length of code until it is done entirely using python standard libraries. (It's not sth. I require desperately but I want …

Member Avatar
Member Avatar
+0 forum 6

Hi all, I am really new in bash scripting and I can't even make simple tasks What I am trying to do is executing a command (ls -l for this example), over a double leap ssh. [CODE] #!/bin/bash ssh -T myuser@entrypoint ssh -T myuser@targetpc<<EOI ls -ltr . exit EOI [/CODE] I did the following script before and it works, but since I need a double leap it is not useful at all [CODE] #!/bin/bash ssh -T myuser@targetpc<<EOI ls -ltr . exit EOI [/CODE] My naive assumption was that it would be just adding another ssh to the line Thank you!

Member Avatar
Member Avatar
+0 forum 3

I have been trying to figure out how to build this library on Windows for damn near 6 hours, and I am at a complete loss. I have found a lot of answers on these forums before, so I joined up hoping someone might have some idea. The INSTALL file, README file, and Documentation PDF get really jack information on building besides to run CMAKE on it. [url]http://www.netsieben.com/products/ssh/index.phtml[/url] There is the link. It requires the Botan Crypto Library ([url]http://botan.randombit.net[/url]) which is where my issues are coming from. I am not sure if I am supposed to put the Botan files …

Member Avatar
Member Avatar
-1 forum 3

Hello all, So I am a college student learning c++ (planning to major in computer science). Just my luck, the computer science department using visual studio for their entry level classes, which I have been using with no issues for the last year via a VM; I can access the school computers and run VB from my macbook pro. I am now in more mid-upper level classes and we use Linux for the majority of our programs. So far I have been programming using the terminal ssh client, which I understand, but can be difficult to navigate at times, especially …

Member Avatar
+0 forum 0

So I am in the process of writing simple client type program that send files over ssh. My goal is to have a shell script that interacts. for an example if i wanted to send a file to the server it wound be something like 'foo send FILENAME'. My question where do I need to start looking or what would be my first step in implementing this. I am not looking for an answer but more of a gentle nudge in the right direction.

Member Avatar
Member Avatar
+0 forum 2

I have a Verizon FiOS router. I need to be able to forward port 5900 (VNC) to a specific machine, is there any way to do this over SSH? I can't just use Lynx because the router config page uses JavaScript for [I]everything[/I]. Is there any way I can forward this port? Is there a way to tell the router to forward it without using the config page? I know it's possible because Skype does it.

Member Avatar
+0 forum 0

hey guys, first post. I have a program that takes a file from a windows box, and FTP's it to a unix/linux box. The program works fine, however there is something i want to add to it. I want the program to send 2 commands to the unix box while im still connected to it: 1) a concatonate command [cat MASTERLOGFILE.txt newlogfile >temp] and 2) a copy command [cp temp MASTERLOGFILE.txt]. I have read that there is a ftp.sendcmd([I]command[/I]) command that transfers a command to the box that its connected to, however i get errors when running the above mentioned …

Member Avatar
Member Avatar
+0 forum 1

I have been developing a MySQL database backup and restore appliation in windows forms. This application crates a dump of a mysql database at remote location and imports everything from the dump file back into local mysql database. MySQL database is located at the server which hosts my php website. So it is obvious that if i want to access that mysql server from my local network, i have to allow mysqlserver at remote location to allow me to connect from my company's local network, by adding the public ip of my network in the lists of ip that remote …

Member Avatar
Member Avatar
+0 forum 2

The End.