diff --git a/xCAT/postscripts/sudoer b/xCAT/postscripts/sudoer
index cfb9b562b..65c540c27 100755
--- a/xCAT/postscripts/sudoer
+++ b/xCAT/postscripts/sudoer
@@ -53,4 +53,8 @@ chown $SUDOER:users $HOME/.ssh/authorized_keys
 
 # Restart the SSHD for syncfiles postscript to do the sync work
 logger -t xCAT -p local4.info "Restarting SSHD"
-service sshd restart
+if [ -f "/etc/debian_version" ];then
+    service ssh restart
+else
+    service sshd restart
+fi